Solves 500 error for some users
#8
by
Tonic
- opened
app.py
CHANGED
|
@@ -209,7 +209,7 @@ with gr.Blocks() as app:
|
|
| 209 |
if __name__ == "__main__":
|
| 210 |
|
| 211 |
if NSFW_URL_TEMPLATE and TTS_URL_TEMPLATE:
|
| 212 |
-
app.launch()
|
| 213 |
else:
|
| 214 |
print("ERROR: Cannot launch app. Required API URL secrets are missing.")
|
| 215 |
|
|
|
|
| 209 |
if __name__ == "__main__":
|
| 210 |
|
| 211 |
if NSFW_URL_TEMPLATE and TTS_URL_TEMPLATE:
|
| 212 |
+
app.launch(ssr_mode=False)
|
| 213 |
else:
|
| 214 |
print("ERROR: Cannot launch app. Required API URL secrets are missing.")
|
| 215 |
|