Kaushik066 commited on
Commit
42a4fce
·
1 Parent(s): 65a463e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -396,5 +396,8 @@ with gr.Blocks(css=custom_css) as demo:
396
  # Set up the interface
397
  search_button.click(play_video, inputs=video_dropdown, outputs=search_output)
398
 
 
 
 
399
  if __name__ == "__main__":
400
- demo.launch(static_paths=["static"])
 
396
  # Set up the interface
397
  search_button.click(play_video, inputs=video_dropdown, outputs=search_output)
398
 
399
+ # Mount the static folder to serve static files (like images)
400
+ demo.mount("/static", gr.routes.Static("/static", os.path.join(os.getcwd(), "static")))
401
+
402
  if __name__ == "__main__":
403
+ demo.launch()