Tremick commited on
Commit
84aa9d2
·
1 Parent(s): 60b45e4

erver binding

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -143,8 +143,4 @@ with gr.Blocks(title="Software-ToF 3D Cloud Visualizer") as demo:
143
  submit_btn.click(fn=create_3d_point_cloud, inputs=[input_img], outputs=[output_3d])
144
 
145
  # Mount your unified architecture onto Hugging Face port 7860
146
- app = gr.mount_gradio_app(fastapi_app, demo, path="/")
147
-
148
- if __name__ == "__main__":
149
- import uvicorn
150
- uvicorn.run(app, host="0.0.0.0", port=7860)
 
143
  submit_btn.click(fn=create_3d_point_cloud, inputs=[input_img], outputs=[output_3d])
144
 
145
  # Mount your unified architecture onto Hugging Face port 7860
146
+ app = gr.mount_gradio_app(fastapi_app, demo, path="/")