Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,7 +32,7 @@ message_history.append(input)
|
|
| 32 |
with placeholder.container():
|
| 33 |
if message_history[-1] != "":
|
| 34 |
|
| 35 |
-
message(message_history[-1]) # display the latest message
|
| 36 |
|
| 37 |
|
| 38 |
message(input, is_user=True) # align's the message to the right
|
|
@@ -54,6 +54,4 @@ if resp.status_code == 200:
|
|
| 54 |
bot_answer = random.choice(response_templates)
|
| 55 |
|
| 56 |
message_history.append({"text":bot_answer, "is_user" : False})
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
|
|
|
| 32 |
with placeholder.container():
|
| 33 |
if message_history[-1] != "":
|
| 34 |
|
| 35 |
+
message(message_history[-1]["text"], message_history[-1]["is_user"]) # display the latest message
|
| 36 |
|
| 37 |
|
| 38 |
message(input, is_user=True) # align's the message to the right
|
|
|
|
| 54 |
bot_answer = random.choice(response_templates)
|
| 55 |
|
| 56 |
message_history.append({"text":bot_answer, "is_user" : False})
|
| 57 |
+
|
|
|
|
|
|