Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,9 +31,11 @@ message_history.append(input)
|
|
| 31 |
|
| 32 |
with placeholder.container():
|
| 33 |
if message_history[-1] != "":
|
| 34 |
-
|
|
|
|
|
|
|
| 35 |
else:
|
| 36 |
-
message(message_history[-2])
|
| 37 |
|
| 38 |
|
| 39 |
message(input, is_user=True) # align's the message to the right
|
|
|
|
| 31 |
|
| 32 |
with placeholder.container():
|
| 33 |
if message_history[-1] != "":
|
| 34 |
+
|
| 35 |
+
message(message_history[-1], key = "2nd_message") # display the latest message
|
| 36 |
+
|
| 37 |
else:
|
| 38 |
+
message(message_history[-2], key = "first_message")
|
| 39 |
|
| 40 |
|
| 41 |
message(input, is_user=True) # align's the message to the right
|