MartinKosela commited on
Commit
90b66df
·
1 Parent(s): 6699e04

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -59,10 +59,12 @@ st.title('Discover the best model for your GenAI App')
59
  st.write("")
60
 
61
  st.markdown("<h4 style='font-size:20px;'>Outline Your Application's Functionality:</h4>", unsafe_allow_html=True)
62
- description = st.text_area("", key="app_description", on_change=lambda: st.session_state.__setitem__('show_next_button', True))
63
 
64
- if 'show_next_button' in st.session_state and st.session_state.show_next_button:
 
65
  if st.button("Next", key="next_to_dataset"):
 
66
  st.session_state.show_dataset_description = True
67
 
68
 
 
59
  st.write("")
60
 
61
  st.markdown("<h4 style='font-size:20px;'>Outline Your Application's Functionality:</h4>", unsafe_allow_html=True)
62
+ description = st.text_area("", key="app_description")
63
 
64
+ # Using a placeholder for the "Next" button to always display it
65
+ if description or 'next_clicked' in st.session_state:
66
  if st.button("Next", key="next_to_dataset"):
67
+ st.session_state['next_clicked'] = True
68
  st.session_state.show_dataset_description = True
69
 
70