Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -287,7 +287,7 @@ class ChatInterface:
|
|
287 |
|
288 |
if st.button("Clear History"):
|
289 |
st.session_state.chat_history = []
|
290 |
-
st.experimental_rerun()
|
291 |
|
292 |
# Main interface
|
293 |
col1, col2 = st.columns([3, 1])
|
@@ -361,7 +361,7 @@ class ChatInterface:
|
|
361 |
})
|
362 |
logger.error(error_msg)
|
363 |
|
364 |
-
st.experimental_rerun()
|
365 |
|
366 |
def handle_command(self, command):
|
367 |
"""Handle system commands"""
|
|
|
287 |
|
288 |
if st.button("Clear History"):
|
289 |
st.session_state.chat_history = []
|
290 |
+
st.experimental_rerun() # Use experimental_rerun() if experimental_rerun() is not available
|
291 |
|
292 |
# Main interface
|
293 |
col1, col2 = st.columns([3, 1])
|
|
|
361 |
})
|
362 |
logger.error(error_msg)
|
363 |
|
364 |
+
st.experimental_rerun() # Use experimental_rerun() if experimental_rerun() is not available
|
365 |
|
366 |
def handle_command(self, command):
|
367 |
"""Handle system commands"""
|