Spaces:
Sleeping
Sleeping
| import os | |
| from flask import Flask, render_template, send_from_directory, jsonify | |
| app = Flask(__name__, static_folder='static', template_folder='templates') | |
| def index(): | |
| return render_template('index.html') | |
| def healthz(): | |
| return jsonify({"status": "ok"}), 200 | |
| def send_static(path): | |
| return send_from_directory('static', path) | |
| if __name__ == '__main__': | |
| port = int(os.environ.get('PORT', 7860)) | |
| app.run(host='0.0.0.0', port=port, debug=True) | |