Spaces:
Sleeping
Sleeping
Commit
·
a428ba8
1
Parent(s):
817156c
Update app.py
Browse files
app.py
CHANGED
@@ -43,6 +43,7 @@ KNOWN_MODELS = [
|
|
43 |
]
|
44 |
|
45 |
def recommend_ai_model_via_gpt(description):
|
|
|
46 |
messages = [
|
47 |
{"role": "user", "content": description}
|
48 |
]
|
@@ -81,9 +82,16 @@ st.image("./A8title2.png")
|
|
81 |
st.title('Find the best AI stack for your app')
|
82 |
|
83 |
description = st.text_area("Describe your application:")
|
84 |
-
dataset_description = st.text_area("Describe the dataset you want to use for fine-tuning your model:")
|
85 |
|
86 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
|
88 |
if "rec_model_pressed" not in st.session_state:
|
89 |
st.session_state.rec_model_pressed = False
|
|
|
43 |
]
|
44 |
|
45 |
def recommend_ai_model_via_gpt(description):
|
46 |
+
combined_description = f"{description} Dataset: {dataset_description}"
|
47 |
messages = [
|
48 |
{"role": "user", "content": description}
|
49 |
]
|
|
|
82 |
st.title('Find the best AI stack for your app')
|
83 |
|
84 |
description = st.text_area("Describe your application:")
|
|
|
85 |
|
86 |
+
if description:
|
87 |
+
dataset_description = st.text_area("Describe the dataset you want to use for fine-tuning your model:")
|
88 |
+
|
89 |
+
if dataset_description:
|
90 |
+
if st.button("Recommend AI Model"):
|
91 |
+
recommended_model = recommend_ai_model_via_gpt(description, dataset_description)
|
92 |
+
st.subheader(f"Recommended: {recommended_model}")
|
93 |
+
|
94 |
+
recommendation_type = st.radio("What type of recommendation are you looking for?", ["Recommend Open-Source Model", "Recommend API Service"])
|
95 |
|
96 |
if "rec_model_pressed" not in st.session_state:
|
97 |
st.session_state.rec_model_pressed = False
|