Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,10 +5,11 @@ app = Flask(__name__, static_folder='.')
|
|
| 5 |
|
| 6 |
@app.route('/')
|
| 7 |
def serve_index():
|
| 8 |
-
# Serves the index.html file located in the same directory
|
| 9 |
return send_from_directory('.', 'index.html')
|
| 10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
if __name__ == '__main__':
|
| 12 |
-
|
| 13 |
-
app.run(host='0.0.0.0', port=7860, debug=True)
|
| 14 |
-
|
|
|
|
| 5 |
|
| 6 |
@app.route('/')
|
| 7 |
def serve_index():
|
|
|
|
| 8 |
return send_from_directory('.', 'index.html')
|
| 9 |
|
| 10 |
+
@app.route('/<path:path>')
|
| 11 |
+
def serve_static(path):
|
| 12 |
+
return send_from_directory('.', path)
|
| 13 |
+
|
| 14 |
if __name__ == '__main__':
|
| 15 |
+
app.run(host='0.0.0.0', port=7860, debug=False)
|
|
|
|
|
|