Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -32,10 +32,7 @@ message_history.append(input)
|
|
32 |
with placeholder.container():
|
33 |
if message_history[-1] != "":
|
34 |
|
35 |
-
message(message_history[-1]
|
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
|
@@ -55,10 +52,4 @@ if resp.status_code == 200:
|
|
55 |
message_history.append(bot_answer)
|
56 |
|
57 |
|
58 |
-
"""
|
59 |
-
except:
|
60 |
-
message("I'm listening π ")
|
61 |
-
message_history.append("I'm listening π")
|
62 |
-
"""
|
63 |
-
|
64 |
|
|
|
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
|
|
|
52 |
message_history.append(bot_answer)
|
53 |
|
54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
|