Singularity666 commited on
Commit
22b0aff
Β·
verified Β·
1 Parent(s): fc99d9f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -41,4 +41,9 @@ if __name__ == "__main__":
41
  clone_repo()
42
  print("[fashionCORE] Starting ...")
43
  demo = create_interface()
44
- demo.launch()
 
 
 
 
 
 
41
  clone_repo()
42
  print("[fashionCORE] Starting ...")
43
  demo = create_interface()
44
+
45
+ # Use gr.mount_gradio_app for newer Gradio versions
46
+ if hasattr(gr, 'mount_gradio_app'):
47
+ gr.mount_gradio_app(app, demo.app, path="/")
48
+ else:
49
+ demo.launch()