merve HF staff commited on
Commit
6876b98
β€’
1 Parent(s): 06d9d25

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -10
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], 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
@@ -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