mateoluksenberg commited on
Commit
2d54649
1 Parent(s): eea0f24

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -43,3 +43,15 @@ async def predict_image(file: UploadFile = File(...)):
43
 
44
  # Devolver la predicción como respuesta
45
  return prediction
 
 
 
 
 
 
 
 
 
 
 
 
 
43
 
44
  # Devolver la predicción como respuesta
45
  return prediction
46
+
47
+
48
+ if __name__ == "__main__":
49
+
50
+ app = gr.mount_gradio_app(app, demo, "/")
51
+ uvicorn.run(app, host="0.0.0.0", port=7860)
52
+
53
+ #app.mount("/static", StaticFiles(directory="static", html=True), name="static")
54
+ # app = gr.mount_gradio_app(app, block, "/", gradio_api_url="http://localhost:7860/")
55
+ # uvicorn.run(app, host="0.0.0.0", port=7860)
56
+
57
+ demo.queue(api_open=False).launch(show_api=False, share=False, )#server_name="0.0.0.0", )