Spaces:
Sleeping
Sleeping
Launch without server-side rendering
Browse filesGradio's launch check of the page through the Node proxy can time out while the model loads, which crashes the app at startup.
app.py
CHANGED
|
@@ -115,4 +115,7 @@ if __name__ == "__main__":
|
|
| 115 |
process_fn=process_fn,
|
| 116 |
)
|
| 117 |
|
| 118 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 115 |
process_fn=process_fn,
|
| 116 |
)
|
| 117 |
|
| 118 |
+
# Server-side rendering puts a Node proxy in front of every request, and Gradio's launch
|
| 119 |
+
# check of the page through it can time out while the model loads, which crashes the app.
|
| 120 |
+
# HARP calls the API alone, so nothing is lost without it.
|
| 121 |
+
demo.queue().launch(show_error=True, pwa=True, ssr_mode=False)
|