Spaces:
Sleeping
Sleeping
Update streamlit_app.py
Browse files- streamlit_app.py +1 -1
streamlit_app.py
CHANGED
|
@@ -59,7 +59,7 @@ with st.form("chat_form", clear_on_submit=True):
|
|
| 59 |
llm_response = f"Unexpected error: {e}"
|
| 60 |
|
| 61 |
st.session_state.chat_history.append({"role": "assistant", "message": llm_response})
|
| 62 |
-
st.
|
| 63 |
|
| 64 |
elif submitted and not user_prompt:
|
| 65 |
st.warning("Please enter a prompt before clicking 'Send'.")
|
|
|
|
| 59 |
llm_response = f"Unexpected error: {e}"
|
| 60 |
|
| 61 |
st.session_state.chat_history.append({"role": "assistant", "message": llm_response})
|
| 62 |
+
st.rerun()
|
| 63 |
|
| 64 |
elif submitted and not user_prompt:
|
| 65 |
st.warning("Please enter a prompt before clicking 'Send'.")
|