rrg92 commited on
Commit
17b5440
·
1 Parent(s): 8f10b0b

disable ssr_mode

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -56,7 +56,8 @@ async def openai_embeddings(request: Request):
56
 
57
 
58
 
59
- GradioApp = gr.mount_gradio_app(app, demo, path="");
60
-
61
- uvicorn.run(GradioApp, port=7860, host="0.0.0.0")
 
62
 
 
56
 
57
 
58
 
59
+ GradioApp = gr.mount_gradio_app(app, demo, path="", ssr_mode=False);
60
+
61
+ if __name__ == "__main__":
62
+ uvicorn.run(GradioApp, port=7860, host="0.0.0.0")
63