Spaces:
Sleeping
Sleeping
Commit
·
99d63d2
1
Parent(s):
904fb2b
Update app.py
Browse files
app.py
CHANGED
@@ -68,12 +68,12 @@ st.write("")
|
|
68 |
st.markdown("<h4 style='font-size:20px;'>Outline Your Application's Functionality:</h4>", unsafe_allow_html=True)
|
69 |
description = st.text_area("", key="app_description")
|
70 |
|
71 |
-
if
|
72 |
-
st.
|
|
|
73 |
|
74 |
-
if st.session_state.show_dataset_description:
|
75 |
-
st.
|
76 |
-
dataset_description = st.text_area("", key="dataset_description")
|
77 |
if dataset_description:
|
78 |
if st.button("Recommend AI Model", key="recommend_model_button"):
|
79 |
recommended_model = recommend_ai_model_via_gpt(description, dataset_description)
|
@@ -85,4 +85,7 @@ if st.session_state.show_dataset_description:
|
|
85 |
if st.button("Submit Feedback", key="submit_feedback_key"):
|
86 |
st.session_state.feedback_submitted = True
|
87 |
if st.session_state.feedback_submitted:
|
88 |
-
st.success("Thank you for your feedback!")
|
|
|
|
|
|
|
|
68 |
st.markdown("<h4 style='font-size:20px;'>Outline Your Application's Functionality:</h4>", unsafe_allow_html=True)
|
69 |
description = st.text_area("", key="app_description")
|
70 |
|
71 |
+
if description:
|
72 |
+
if st.button("Next", key="next_to_dataset"):
|
73 |
+
st.session_state.show_dataset_description = True
|
74 |
|
75 |
+
if 'show_dataset_description' in st.session_state and st.session_state.show_dataset_description:
|
76 |
+
dataset_description = st.text_area("Detail your model's training dataset:")
|
|
|
77 |
if dataset_description:
|
78 |
if st.button("Recommend AI Model", key="recommend_model_button"):
|
79 |
recommended_model = recommend_ai_model_via_gpt(description, dataset_description)
|
|
|
85 |
if st.button("Submit Feedback", key="submit_feedback_key"):
|
86 |
st.session_state.feedback_submitted = True
|
87 |
if st.session_state.feedback_submitted:
|
88 |
+
st.success("Thank you for your feedback!")
|
89 |
+
|
90 |
+
else:
|
91 |
+
st.warning("Please provide a description of your application.")
|