Update app.py
Browse files
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)
|