Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -113,9 +113,9 @@ with gr.Blocks() as demo:
|
|
113 |
clear = gr.Button("Clear")
|
114 |
|
115 |
def respond(message, chat_history):
|
116 |
-
chat_history
|
117 |
-
bot_message = gen(
|
118 |
-
chat_history.append(bot_message)
|
119 |
time.sleep(1)
|
120 |
return "", chat_history
|
121 |
|
|
|
113 |
clear = gr.Button("Clear")
|
114 |
|
115 |
def respond(message, chat_history):
|
116 |
+
temp_str = str(chat_history)
|
117 |
+
bot_message = gen(temp_str+message)
|
118 |
+
chat_history.append((message, bot_message))
|
119 |
time.sleep(1)
|
120 |
return "", chat_history
|
121 |
|