spore_grok / app.py
broadfield-dev's picture
Update app.py
11f49e4 verified
raw
history blame
404 Bytes
from flask import Flask, render_template, send_from_directory
import os
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')
@app.route('/static/<path:path>')
def send_static(path):
return send_from_directory('static', path)
if __name__ == '__main__':
port = int(os.getenv("PORT", 7860)) # Default port for Spaces
app.run(host="0.0.0.0", port=port)