Update app.py
Browse files
app.py
CHANGED
|
@@ -22,5 +22,9 @@ def get_data():
|
|
| 22 |
def serve_index():
|
| 23 |
return send_from_directory('public', 'index.html')
|
| 24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
if __name__ == "__main__":
|
| 26 |
app.run(host="0.0.0.0", port=7860)
|
|
|
|
| 22 |
def serve_index():
|
| 23 |
return send_from_directory('public', 'index.html')
|
| 24 |
|
| 25 |
+
@app.route('/static/js/<path:path>')
|
| 26 |
+
def serve_static_js(path):
|
| 27 |
+
return send_from_directory('public/static/js', path)
|
| 28 |
+
|
| 29 |
if __name__ == "__main__":
|
| 30 |
app.run(host="0.0.0.0", port=7860)
|