Spaces:
Sleeping
Sleeping
MartinKosela
commited on
Commit
•
2328160
1
Parent(s):
0f7e00d
Update app.py
Browse files
app.py
CHANGED
@@ -65,31 +65,6 @@ def explain_recommendation(model_name):
|
|
65 |
# Streamlit UI
|
66 |
st.title('AI Model Recommender')
|
67 |
|
68 |
-
description = st.text_area("Describe your application:", "")
|
69 |
-
if st.button("Recommend AI Model"):
|
70 |
-
if description:
|
71 |
-
recommended_model = recommend_ai_model_via_gpt(description)
|
72 |
-
|
73 |
-
# Validate recommended model
|
74 |
-
# if recommended_model not in KNOWN_MODELS:
|
75 |
-
# st.warning("The recommendation is ambiguous. Please refine your description or consult an expert.")
|
76 |
-
# else:
|
77 |
-
# st.subheader(f"Recommended AI Model: {recommended_model}")
|
78 |
-
explanation = explain_recommendation(recommended_model)
|
79 |
-
st.write("Reason:", explanation)
|
80 |
-
|
81 |
-
# Collecting rating and feedback through Streamlit
|
82 |
-
rating = st.slider("Rate the explanation from 1 (worst) to 5 (best):", 1, 5)
|
83 |
-
feedback = st.text_input("Any additional feedback?")
|
84 |
-
|
85 |
-
if st.button("Submit Feedback"):
|
86 |
-
st.success("Thank you for your feedback!")
|
87 |
-
else:
|
88 |
-
st.warning("Please provide a description.")
|
89 |
-
|
90 |
-
# Streamlit UI
|
91 |
-
st.title('AI Model Recommender')
|
92 |
-
|
93 |
description = st.text_area("Describe your application:", "")
|
94 |
|
95 |
if "rec_model_pressed" not in st.session_state:
|
|
|
65 |
# Streamlit UI
|
66 |
st.title('AI Model Recommender')
|
67 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
description = st.text_area("Describe your application:", "")
|
69 |
|
70 |
if "rec_model_pressed" not in st.session_state:
|