Vaishnav14220 commited on
Commit
5cd75da
·
1 Parent(s): b489aa1

Remove manual uvicorn.run to fix port binding conflict in HF Spaces

Browse files
Files changed (1) hide show
  1. app.py +0 -8
app.py CHANGED
@@ -1840,11 +1840,3 @@ async def get_nist_reactions(limit: int = Query(200, description="Maximum number
1840
  # Mount Gradio app
1841
  demo = build_interface()
1842
  app = gr.mount_gradio_app(app, demo, path="/")
1843
-
1844
- if __name__ == "__main__":
1845
- import uvicorn
1846
- uvicorn.run(
1847
- app,
1848
- host="0.0.0.0",
1849
- port=int(os.environ.get("PORT", 7860))
1850
- )
 
1840
  # Mount Gradio app
1841
  demo = build_interface()
1842
  app = gr.mount_gradio_app(app, demo, path="/")