Spaces:
Runtime error
Runtime error
Run on HF
Browse files
app.py
CHANGED
|
@@ -85,8 +85,10 @@ with gr.Blocks(css='style.css') as demo:
|
|
| 85 |
""")
|
| 86 |
|
| 87 |
|
| 88 |
-
|
| 89 |
-
demo.
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
|
|
|
|
|
|
|
|
| 85 |
""")
|
| 86 |
|
| 87 |
|
| 88 |
+
if on_huggingspace:
|
| 89 |
+
demo.queue(max_size=20)
|
| 90 |
+
demo.launch(debug=True)
|
| 91 |
+
else:
|
| 92 |
+
_, _, link = demo.queue(api_open=False).launch(
|
| 93 |
+
file_directories=['temporal'], share=args.public_access or on_huggingspace)
|
| 94 |
+
print(link)
|