Spaces:
Running
Running
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
|
@@ -182,4 +182,7 @@ if __name__ == "__main__":
|
|
| 182 |
process_fn=process_fn,
|
| 183 |
)
|
| 184 |
|
| 185 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 182 |
process_fn=process_fn,
|
| 183 |
)
|
| 184 |
|
| 185 |
+
# Server-side rendering puts a Node proxy in front of every request, and Gradio's launch
|
| 186 |
+
# check of the page through it can time out while the model loads, which crashes the app.
|
| 187 |
+
# HARP calls the API alone, so nothing is lost without it.
|
| 188 |
+
demo.queue().launch(pwa=True, show_error=True, ssr_mode=False)
|