charbel-malo commited on
Commit
b999792
·
verified ·
1 Parent(s): 21476f3

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -273,7 +273,7 @@ async def toggle_favorite_route(request: Request):
273
 
274
  # Mount the Gradio app onto the FastAPI app
275
  app = gr.mount_gradio_app(api, demo, path="/")
276
- demo.launch()
277
  if __name__ == "__main__":
278
  import uvicorn
279
  load_shortcuts()
 
273
 
274
  # Mount the Gradio app onto the FastAPI app
275
  app = gr.mount_gradio_app(api, demo, path="/")
276
+ demo.launch(ssr_mode=False)
277
  if __name__ == "__main__":
278
  import uvicorn
279
  load_shortcuts()