Update app.py
Browse files
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("
|
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.
|
|
|
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
|