Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -187,9 +187,8 @@ def main():
|
|
| 187 |
st.session_state['chat_history'] = chat_history
|
| 188 |
st.session_state['sources'] = sources
|
| 189 |
|
| 190 |
-
#
|
| 191 |
-
st.
|
| 192 |
-
st.rerun() # Force a rerun to update the UI
|
| 193 |
|
| 194 |
if __name__ == "__main__":
|
| 195 |
main()
|
|
|
|
| 187 |
st.session_state['chat_history'] = chat_history
|
| 188 |
st.session_state['sources'] = sources
|
| 189 |
|
| 190 |
+
# Instead of clearing `st.session_state['message_input']`, use Streamlit's `st.empty()`
|
| 191 |
+
st.empty() # This clears the form input
|
|
|
|
| 192 |
|
| 193 |
if __name__ == "__main__":
|
| 194 |
main()
|