Jacksonnavigator7 lyimo commited on
Commit
a1f6be2
·
verified ·
1 Parent(s): c560683

Update app.py (#1)

Browse files

- Update app.py (49d267172877da7a0370868d5dbf39d9a4bc07b7)


Co-authored-by: Tumaini Lyimo <[email protected]>

Files changed (1) hide show
  1. app.py +4 -4
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-3.3-70b-versatile",
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-3.3-70b-versatile",
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-3.3-70b-versatile",
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-3.3-70b-versatile",
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