Bennie12 commited on
Commit
bcf09d7
·
verified ·
1 Parent(s): a7c34c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -51,6 +51,4 @@ 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
 
54
- if __name__ == "__main__":
55
- import uvicorn
56
- uvicorn.run(app, host="0.0.0.0", port=7860)
 
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
+ demo = text_api