Solves 500 error for some users

#8
Files changed (1) hide show
  1. app.py +1 -1
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