Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -765,4 +765,13 @@ with gr.Blocks(css=BASE_CSS, title="ForgeCaptions") as demo:
|
|
| 765 |
)
|
| 766 |
|
| 767 |
# Launch
|
| 768 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 765 |
)
|
| 766 |
|
| 767 |
# Launch
|
| 768 |
+
if __name__ == "__main__":
|
| 769 |
+
demo.queue(max_size=64).launch(
|
| 770 |
+
server_name="0.0.0.0",
|
| 771 |
+
server_port=int(os.getenv("PORT", "7860")),
|
| 772 |
+
ssr_mode=False, # turn off experimental SSR
|
| 773 |
+
debug=True, # log stack traces
|
| 774 |
+
show_error=True # show UI error boxes
|
| 775 |
+
# share=True # only for local dev; not needed on Spaces
|
| 776 |
+
)
|
| 777 |
+
|