Enoch1359 commited on
Commit
185fe3e
·
verified ·
1 Parent(s): c2d0123

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -32,11 +32,11 @@ if "history" not in st.session_state:
32
  for sender, msg in st.session_state.history:
33
  st.markdown(f"**{sender}:** {msg}")
34
 
35
- user_input = st.text_input("Type your message and press Enter", key="input")
36
 
37
 
38
  if user_input:
39
  st.session_state.history.append(("You", user_input))
40
  response = llm.invoke(user_input)
41
  st.session_state.history.append(("Bot", response.content))
42
- st.experimental_rerun() # force UI refresh
 
32
  for sender, msg in st.session_state.history:
33
  st.markdown(f"**{sender}:** {msg}")
34
 
35
+ user_input = st.text_input("ASK ME anything", key="input")
36
 
37
 
38
  if user_input:
39
  st.session_state.history.append(("You", user_input))
40
  response = llm.invoke(user_input)
41
  st.session_state.history.append(("Bot", response.content))
42
+ st.rerun() # force UI refresh