SamSak09 commited on
Commit
2d07b86
·
verified ·
1 Parent(s): c3b8c3c

Update app2.py

Browse files
Files changed (1) hide show
  1. app2.py +5 -1
app2.py CHANGED
@@ -83,7 +83,11 @@ def serve_ui():
83
 
84
  return send_from_directory('.', 'index.html')
85
 
86
-
 
 
 
 
87
 
88
  # --- THE NEW WEBSOCKET PIPELINE ---
89
 
 
83
 
84
  return send_from_directory('.', 'index.html')
85
 
86
+ # --- ADD THIS NEW ROUTE HERE ---
87
+ @app.route('/<path:filename>')
88
+ def serve_static_files(filename):
89
+ # This allows Flask to send the smpl.glb file when the browser asks for it!
90
+ return send_from_directory('.', filename)
91
 
92
  # --- THE NEW WEBSOCKET PIPELINE ---
93