harshSethi commited on
Commit
57e591c
·
verified ·
1 Parent(s): 255304b

Update gradio_app.py

Browse files
Files changed (1) hide show
  1. gradio_app.py +1 -2
gradio_app.py CHANGED
@@ -9,7 +9,6 @@ def predict(message, history):
9
  response_data = response.json()
10
  return response_data['response']
11
  else:
12
- logging.error(f"Error connecting to FastAPI: {response.status_code} {response.text}")
13
  return "Error: Unable to connect to the FastAPI backend."
14
 
15
  demo = gr.ChatInterface(
@@ -25,4 +24,4 @@ demo = gr.ChatInterface(
25
  )
26
 
27
  def start_gradio():
28
- demo.launch(server_name="0.0.0.0", log_level="info")
 
9
  response_data = response.json()
10
  return response_data['response']
11
  else:
 
12
  return "Error: Unable to connect to the FastAPI backend."
13
 
14
  demo = gr.ChatInterface(
 
24
  )
25
 
26
  def start_gradio():
27
+ demo.launch(server_name="0.0.0.0")