Update app1.py
Browse files
app1.py
CHANGED
|
@@ -25,7 +25,13 @@ with gr.Blocks() as demo:
|
|
| 25 |
response += token
|
| 26 |
|
| 27 |
# Update chat history
|
| 28 |
-
chat_history_value =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
chat_history_value.append((message, response))
|
| 30 |
chat_history.update(value=chat_history_value)
|
| 31 |
|
|
|
|
| 25 |
response += token
|
| 26 |
|
| 27 |
# Update chat history
|
| 28 |
+
chat_history_value = [
|
| 29 |
+
("User", "Hello!"),
|
| 30 |
+
("Assistant", "Hello! How can I help you today?"),
|
| 31 |
+
"User", "I need help with..."),
|
| 32 |
+
( "Assistant", "I'd be happy to help!"),
|
| 33 |
+
]
|
| 34 |
+
chat_history.update(value=chat_history_value)
|
| 35 |
chat_history_value.append((message, response))
|
| 36 |
chat_history.update(value=chat_history_value)
|
| 37 |
|