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