zxcgqq commited on
Commit
1059dcf
·
1 Parent(s): b74c905

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ agent = initialize_agent(tools, llm, memory=memory, agent="conversational-react-
17
  def run_text(text, state):
18
  output = agent.run(input=(text))
19
  print(output)
20
- return output
21
 
22
  with gr.Blocks(css="#chatbot {overflow:auto; height:500px;}") as demo:
23
  chatbot = gr.Chatbot(elem_id="chatbot",show_label=False)
 
17
  def run_text(text, state):
18
  output = agent.run(input=(text))
19
  print(output)
20
+ return [(text,output)]
21
 
22
  with gr.Blocks(css="#chatbot {overflow:auto; height:500px;}") as demo:
23
  chatbot = gr.Chatbot(elem_id="chatbot",show_label=False)