Bennie12 commited on
Commit
85d96e9
·
verified ·
1 Parent(s): 2100448

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -51,3 +51,6 @@ app = fastapi.FastAPI()
51
  app = gr.mount_gradio_app(app, text_api, path="/run/predict_text")
52
  app = gr.mount_gradio_app(app, image_api, path="/run/predict_image")
53
 
 
 
 
 
51
  app = gr.mount_gradio_app(app, text_api, path="/run/predict_text")
52
  app = gr.mount_gradio_app(app, image_api, path="/run/predict_image")
53
 
54
+ if __name__ == "__main__":
55
+ import uvicorn
56
+ uvicorn.run(app, host="0.0.0.0", port=7860)