KingCobra69 commited on
Commit
be92c85
·
verified ·
1 Parent(s): 6999e3f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -49,8 +49,7 @@ iface = gr.Interface(
49
  )
50
 
51
  # Mount Gradio app to FastAPI
52
- app = gr.mount_gradio_app(app, iface, path="/")
53
-
54
- # For local testing
55
  if __name__ == "__main__":
56
- iface.launch()
 
 
49
  )
50
 
51
  # Mount Gradio app to FastAPI
52
+ #app = gr.mount_gradio_app(app, iface, path="/")
 
 
53
  if __name__ == "__main__":
54
+ import uvicorn
55
+ uvicorn.run(app, host="0.0.0.0", port=7860)