Rajdeep554 commited on
Commit
c814894
·
verified ·
1 Parent(s): 06bf481

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
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
- # Runs the application on Hugging Face Spaces' default port 7860
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)