david-oplatka commited on
Commit
c9a7070
·
verified ·
1 Parent(s): aaafa23

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -65,15 +65,17 @@ def respond(message, history):
65
  outputs += output
66
  yield outputs
67
  else:
 
68
  # Call non-stream response and return message output
69
  response = vq.submit_query(message)
 
70
  return response
71
 
72
  def random_fun(message, history):
73
  return message + '!'
74
 
75
 
76
- demo = gr.ChatInterface(random_fun, title = cfg.title, description = cfg.description)
77
 
78
  """
79
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
 
65
  outputs += output
66
  yield outputs
67
  else:
68
+ print("Calling normal query")
69
  # Call non-stream response and return message output
70
  response = vq.submit_query(message)
71
+ print("Chat response: {response}")
72
  return response
73
 
74
  def random_fun(message, history):
75
  return message + '!'
76
 
77
 
78
+ demo = gr.ChatInterface(respond, title = cfg.title, description = cfg.description)
79
 
80
  """
81
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface