Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -103,4 +103,10 @@ with gr.Blocks() as demo:
|
|
| 103 |
btn.click(fn=process, inputs=[files, config_json], outputs=[out])
|
| 104 |
|
| 105 |
if __name__ == "__main__":
|
| 106 |
-
demo.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 103 |
btn.click(fn=process, inputs=[files, config_json], outputs=[out])
|
| 104 |
|
| 105 |
if __name__ == "__main__":
|
| 106 |
+
demo.queue() # important on HF
|
| 107 |
+
demo.launch(
|
| 108 |
+
server_name="0.0.0.0",
|
| 109 |
+
server_port=int(os.getenv("PORT", "7860")),
|
| 110 |
+
ssr_mode=False,
|
| 111 |
+
show_error=True,
|
| 112 |
+
)
|