NanobotzAI commited on
Commit
7129024
·
verified ·
1 Parent(s): 825e973

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -110,8 +110,9 @@ def chat_with_pdf(msg: str = Query(..., title="User Message")):
110
  return {"response": response}
111
 
112
  def run_gradio():
 
113
  gradio_app = create_interface()
114
- gradio_app.launch(server_name="0.0.0.0", server_port=7860, share=True)
115
 
116
  if __name__ == "__main__":
117
  # Start Gradio in a separate thread
 
110
  return {"response": response}
111
 
112
  def run_gradio():
113
+ """Launches Gradio in a separate thread."""
114
  gradio_app = create_interface()
115
+ gradio_app.launch(server_name="0.0.0.0", server_port=7860, share=True, enable_queue=False)
116
 
117
  if __name__ == "__main__":
118
  # Start Gradio in a separate thread