Spaces:
Sleeping
Sleeping
Commit
·
6699e04
1
Parent(s):
8afcdb2
Update app.py
Browse files
app.py
CHANGED
@@ -59,15 +59,17 @@ 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")
|
63 |
|
64 |
-
if
|
65 |
if st.button("Next", key="next_to_dataset"):
|
66 |
st.session_state.show_dataset_description = True
|
67 |
|
|
|
|
|
68 |
if 'show_dataset_description' in st.session_state and st.session_state.show_dataset_description:
|
69 |
st.markdown("<h4 style='font-size:20px;'>Detail Your Model's Training Dataset:</h4>", unsafe_allow_html=True)
|
70 |
-
dataset_description = st.text_area("", key="dataset_description")
|
71 |
if dataset_description:
|
72 |
if st.button("Recommend AI Model", key="recommend_model_button"):
|
73 |
recommended_model = recommend_ai_model_via_gpt(description)
|
|
|
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 |
+
|
69 |
+
|
70 |
if 'show_dataset_description' in st.session_state and st.session_state.show_dataset_description:
|
71 |
st.markdown("<h4 style='font-size:20px;'>Detail Your Model's Training Dataset:</h4>", unsafe_allow_html=True)
|
72 |
+
dataset_description = st.text_area("", key="dataset_description", on_change=lambda: st.session_state.__setitem__('show_next_button', True))
|
73 |
if dataset_description:
|
74 |
if st.button("Recommend AI Model", key="recommend_model_button"):
|
75 |
recommended_model = recommend_ai_model_via_gpt(description)
|