fixed experimental rerun error
Browse files
app.py
CHANGED
@@ -321,7 +321,7 @@ def main():
|
|
321 |
st.markdown("""<br>""", unsafe_allow_html=True)
|
322 |
if st.button("Get Started", key="get_started"):
|
323 |
st.session_state.page = 'chat'
|
324 |
-
st.
|
325 |
|
326 |
with col2:
|
327 |
# Animated medical icon
|
@@ -418,7 +418,7 @@ def main():
|
|
418 |
st.session_state.chat_history.append((user_input, response))
|
419 |
|
420 |
# Rerun to update UI
|
421 |
-
st.
|
422 |
except Exception as e:
|
423 |
st.error(f"Error processing query: {str(e)}")
|
424 |
|
|
|
321 |
st.markdown("""<br>""", unsafe_allow_html=True)
|
322 |
if st.button("Get Started", key="get_started"):
|
323 |
st.session_state.page = 'chat'
|
324 |
+
st.rerun()
|
325 |
|
326 |
with col2:
|
327 |
# Animated medical icon
|
|
|
418 |
st.session_state.chat_history.append((user_input, response))
|
419 |
|
420 |
# Rerun to update UI
|
421 |
+
st.rerun()
|
422 |
except Exception as e:
|
423 |
st.error(f"Error processing query: {str(e)}")
|
424 |
|