merve HF staff commited on
Commit
06d9d25
·
1 Parent(s): 89c8fdb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -31,9 +31,11 @@ message_history.append(input)
31
 
32
  with placeholder.container():
33
  if message_history[-1] != "":
34
- message(message_history[-1]) # display the latest message
 
 
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