Teerth Patel commited on
Commit
f4fa325
1 Parent(s): 199a42f

Fix: proper format for chatbot

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -69,8 +69,8 @@ def info_to_message(info):
69
  def predict(message, history, request: gr.Request):
70
  response = session_info.get_response(message, request.session_hash)
71
  if response is None:
72
- response = "Agent is finished. Enter a new instruction."
73
- return response
74
 
75
  if __name__ == "__main__":
76
  demo = gr.ChatInterface(predict)
 
69
  def predict(message, history, request: gr.Request):
70
  response = session_info.get_response(message, request.session_hash)
71
  if response is None:
72
+ return "Agent is finished. Enter a new instruction."
73
+ return info_to_message(response)
74
 
75
  if __name__ == "__main__":
76
  demo = gr.ChatInterface(predict)