Teerth Patel commited on
Commit
84e0cba
1 Parent(s): 6f00de1

dont render markdown

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -60,6 +60,7 @@ def info_to_message(info):
60
  v += f"{k2}:\n {v2}\n"
61
  v = User.indent_text(v, 2)
62
  msg += '-' * 64
 
63
  msg += f"{k}:\n{v}\n"
64
 
65
  msg += "Please provide feedback based on the history, response entries, and observation, and questions: "
@@ -72,5 +73,6 @@ def predict(message, history, request: gr.Request):
72
  return info_to_message(response)
73
 
74
  if __name__ == "__main__":
75
- demo = gr.ChatInterface(predict)
 
76
  demo.launch()
 
60
  v += f"{k2}:\n {v2}\n"
61
  v = User.indent_text(v, 2)
62
  msg += '-' * 64
63
+ msg += '\n'
64
  msg += f"{k}:\n{v}\n"
65
 
66
  msg += "Please provide feedback based on the history, response entries, and observation, and questions: "
 
73
  return info_to_message(response)
74
 
75
  if __name__ == "__main__":
76
+ chatbot = gr.Chatbot(render_markdown=False)
77
+ demo = gr.ChatInterface(predict, chatbot=chatbot)
78
  demo.launch()