sohamchitimali commited on
Commit
5f1ee2a
·
1 Parent(s): 3ae468e

Fixing Port Routing issue

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -906,9 +906,8 @@ with gr.Blocks(title="🏆 Hackathon-Winning Query System", theme=gr.themes.Defa
906
  outputs=[single_output]
907
  )
908
 
909
- def launch_gradio():
910
- demo.launch(server_name="0.0.0.0", server_port=7860, show_error=True)
911
 
912
  if __name__ == "__main__":
913
- threading.Thread(target=launch_gradio).start()
914
- uvicorn.run(api_app, host="0.0.0.0", port=8000)
 
906
  outputs=[single_output]
907
  )
908
 
909
+ app = gr.mount_gradio_app(api_app, demo, path="/")
 
910
 
911
  if __name__ == "__main__":
912
+ import uvicorn
913
+ uvicorn.run(app, host="0.0.0.0", port=7860)