Spaces:
Sleeping
Sleeping
Update app.py
#1
by
lyimo
- opened
app.py
CHANGED
|
@@ -156,7 +156,7 @@ def get_bird_habitat_map(bird_name, check_tanzania=True):
|
|
| 156 |
try:
|
| 157 |
tanzania_check = client.chat.completions.create(
|
| 158 |
messages=[{"role": "user", "content": tanzania_check_prompt}],
|
| 159 |
-
model="llama-
|
| 160 |
)
|
| 161 |
is_in_tanzania = "yes" in tanzania_check.choices[0].message.content.lower()
|
| 162 |
# Cache result
|
|
@@ -199,7 +199,7 @@ def get_bird_habitat_map(bird_name, check_tanzania=True):
|
|
| 199 |
"content": prompt,
|
| 200 |
}
|
| 201 |
],
|
| 202 |
-
model="llama-
|
| 203 |
)
|
| 204 |
response = chat_completion.choices[0].message.content
|
| 205 |
|
|
@@ -329,7 +329,7 @@ def get_bird_info(bird_name, language="en"):
|
|
| 329 |
"content": prompt,
|
| 330 |
}
|
| 331 |
],
|
| 332 |
-
model="llama-
|
| 333 |
)
|
| 334 |
response = chat_completion.choices[0].message.content
|
| 335 |
# Cache the result
|
|
@@ -541,7 +541,7 @@ def follow_up_question(question, bird_name, language="en"):
|
|
| 541 |
"content": prompt,
|
| 542 |
}
|
| 543 |
],
|
| 544 |
-
model="llama-
|
| 545 |
)
|
| 546 |
response = chat_completion.choices[0].message.content
|
| 547 |
# Cache the result
|
|
|
|
| 156 |
try:
|
| 157 |
tanzania_check = client.chat.completions.create(
|
| 158 |
messages=[{"role": "user", "content": tanzania_check_prompt}],
|
| 159 |
+
model="deepseek-r1-distill-llama-70b",
|
| 160 |
)
|
| 161 |
is_in_tanzania = "yes" in tanzania_check.choices[0].message.content.lower()
|
| 162 |
# Cache result
|
|
|
|
| 199 |
"content": prompt,
|
| 200 |
}
|
| 201 |
],
|
| 202 |
+
model="deepseek-r1-distill-llama-70b",
|
| 203 |
)
|
| 204 |
response = chat_completion.choices[0].message.content
|
| 205 |
|
|
|
|
| 329 |
"content": prompt,
|
| 330 |
}
|
| 331 |
],
|
| 332 |
+
model="deepseek-r1-distill-llama-70b",
|
| 333 |
)
|
| 334 |
response = chat_completion.choices[0].message.content
|
| 335 |
# Cache the result
|
|
|
|
| 541 |
"content": prompt,
|
| 542 |
}
|
| 543 |
],
|
| 544 |
+
model="deepseek-r1-distill-llama-70b",
|
| 545 |
)
|
| 546 |
response = chat_completion.choices[0].message.content
|
| 547 |
# Cache the result
|