Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
20 |
response = gr.Textbox
|
21 |
|
22 |
def respond(message, chat_history):
|
23 |
-
response = get_chain({"message": message, "
|
24 |
history.append((message, response))
|
25 |
return "", history
|
26 |
|
|
|
20 |
response = gr.Textbox
|
21 |
|
22 |
def respond(message, chat_history):
|
23 |
+
response = get_chain({"message": message, "history": chat_history})["response"]
|
24 |
history.append((message, response))
|
25 |
return "", history
|
26 |
|