Spaces:
Sleeping
Sleeping
Commit
·
7d303d2
1
Parent(s):
81a7239
Update app.py
Browse files
app.py
CHANGED
@@ -62,14 +62,21 @@ st.markdown("<h4 style='font-size:20px;'>Outline Your Application's Functionalit
|
|
62 |
description = st.text_area("", key="app_description")
|
63 |
|
64 |
if description:
|
65 |
-
if st.button("
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
if st.button("
|
73 |
-
|
74 |
-
|
75 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
description = st.text_area("", key="app_description")
|
63 |
|
64 |
if description:
|
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, dataset_description)
|
74 |
+
st.subheader(f"Recommended: {recommended_model}")
|
75 |
+
explanation = explain_recommendation(recommended_model)
|
76 |
+
st.write("Explanation:", explanation)
|
77 |
+
rating = st.slider("Rate the explanation from 1 (worst) to 5 (best):", 1, 5)
|
78 |
+
feedback = st.text_input("Any additional feedback?")
|
79 |
+
if st.button("Submit Feedback", key="submit_feedback_key"):
|
80 |
+
st.session_state.feedback_submitted = True
|
81 |
+
if st.session_state.feedback_submitted:
|
82 |
+
st.success("Thank you for your feedback!")
|