Spaces:
Runtime error
Runtime error
Singularity666
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -41,4 +41,9 @@ if __name__ == "__main__":
|
|
41 |
clone_repo()
|
42 |
print("[fashionCORE] Starting ...")
|
43 |
demo = create_interface()
|
44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
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()
|