merve HF staff commited on
Commit
d08c883
·
1 Parent(s): 7c00320

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -26,15 +26,13 @@ for msg in message_history:
26
  message(msg["text"], is_user = msg["is_user"]) # display all the previous message
27
 
28
  placeholder = st.empty() # placeholder for latest message
29
- input = st.text_input("Ask me 🤗")
30
- message_history.append(input)
31
 
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
39
  message_history.append({"text":input, "is_user" : True})
40
 
 
26
  message(msg["text"], is_user = msg["is_user"]) # display all the previous message
27
 
28
  placeholder = st.empty() # placeholder for latest message
 
 
29
 
30
  with placeholder.container():
31
  if message_history[-1] != "":
32
 
33
  message(message_history[-1]["text"], message_history[-1]["is_user"]) # display the latest message
34
 
35
+ input = st.text_input("Ask me 🤗")
36
  message(input, is_user=True) # align's the message to the right
37
  message_history.append({"text":input, "is_user" : True})
38