Yosun commited on
Commit
7190cce
·
1 Parent(s): a02137c

Eliminate duplicate server launching and asyncio selector warnings

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -212,4 +212,5 @@ with gr.Blocks(title="ZipSplatPlus: 3D Gaussian Splatting with Interactive Viewe
212
  app = gr.mount_gradio_app(app, demo, path="/", allowed_paths=[str(OUT_DIR), tempfile.gettempdir()])
213
 
214
  if __name__ == "__main__":
215
- demo.launch()
 
 
212
  app = gr.mount_gradio_app(app, demo, path="/", allowed_paths=[str(OUT_DIR), tempfile.gettempdir()])
213
 
214
  if __name__ == "__main__":
215
+ import uvicorn
216
+ uvicorn.run("app:app", host="0.0.0.0", port=7860)