import os from flask import Flask, render_template, send_from_directory app = Flask(__name__) @app.route('/') def index(): return render_template('index.html') @app.route('/static/') def serve_static(path): return send_from_directory('static', path) if __name__ == '__main__': # Run on 0.0.0.0:7860 for Hugging Face Spaces app.run(host='0.0.0.0', port=7860)