Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -157,7 +157,4 @@ with st.form("chat_form", clear_on_submit=True):
|
|
| 157 |
except:
|
| 158 |
reply = "⚠️ Something went wrong. Try again."
|
| 159 |
|
| 160 |
-
st.session_state.messages.append({"role": "assistant", "content": reply})
|
| 161 |
-
|
| 162 |
-
# Refresh chat container safely
|
| 163 |
-
st.experimental_rerun()
|
|
|
|
| 157 |
except:
|
| 158 |
reply = "⚠️ Something went wrong. Try again."
|
| 159 |
|
| 160 |
+
st.session_state.messages.append({"role": "assistant", "content": reply})
|
|
|
|
|
|
|
|
|