Spaces:
Sleeping
Sleeping
Commit
·
779925b
1
Parent(s):
8942ede
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ def recommend_ai_model_via_gpt(description):
|
|
13 |
# Formulate a prompt for the large language model
|
14 |
prompt = f"Given the application described as: '{description}', which AI model would be most suitable?"
|
15 |
|
16 |
-
response = openai.
|
17 |
model="gpt-3.5-turbo",
|
18 |
prompt=prompt,
|
19 |
max_tokens=50
|
@@ -26,7 +26,7 @@ def explain_recommendation(model_name):
|
|
26 |
# Formulate a prompt for explanation
|
27 |
prompt = f"Why would {model_name} be a suitable choice for the application?"
|
28 |
|
29 |
-
response = openai.
|
30 |
model="gpt-3.5-turbo",
|
31 |
prompt=prompt,
|
32 |
max_tokens=150
|
|
|
13 |
# Formulate a prompt for the large language model
|
14 |
prompt = f"Given the application described as: '{description}', which AI model would be most suitable?"
|
15 |
|
16 |
+
response = openai.ChatCompletion.create(
|
17 |
model="gpt-3.5-turbo",
|
18 |
prompt=prompt,
|
19 |
max_tokens=50
|
|
|
26 |
# Formulate a prompt for explanation
|
27 |
prompt = f"Why would {model_name} be a suitable choice for the application?"
|
28 |
|
29 |
+
response = openai.ChatCompletion.create(
|
30 |
model="gpt-3.5-turbo",
|
31 |
prompt=prompt,
|
32 |
max_tokens=150
|