Spaces:
Runtime error
Runtime error
File size: 368 Bytes
f18f04b 3b33a44 e9edc80 ec447d0 e9edc80 3ab3bfe ec447d0 30cb684 7a42f0c 70f7ff7 ec447d0 7851dcb ec447d0 f18f04b 0cf3e5e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
import flask
from flask import request, jsonify
import os
from dotenv import load_dotenv
load_dotenv()
app = flask.Flask(__name__, template_folder="./")
app.config['DEBUG'] = True
@app.route("/")
def index():
return flask.render_template('index.html')
if __name__ == '__main__':
app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 7860))) |