Spaces:
Running
on
Zero
Running
on
Zero
add demo launch
Browse files
main.py
CHANGED
@@ -587,13 +587,10 @@ with gr.Blocks() as demo:
|
|
587 |
outputs=[audio_output_0, audio_output_1]
|
588 |
)
|
589 |
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
print(f"Error launching demo: {str(e)}")
|
598 |
-
finally:
|
599 |
-
cleanup_cache()
|
|
|
587 |
outputs=[audio_output_0, audio_output_1]
|
588 |
)
|
589 |
|
590 |
+
if __name__ == "__main__":
|
591 |
+
try:
|
592 |
+
demo.queue().launch(ssr_mode=False)
|
593 |
+
except Exception as e:
|
594 |
+
print(f"Error launching demo: {str(e)}")
|
595 |
+
finally:
|
596 |
+
cleanup_cache()
|
|
|
|
|
|