gus07ven commited on
Commit
49f93f2
·
verified ·
1 Parent(s): 872028b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -18,7 +18,7 @@ def get_latest_astros_score(todays_date:str)-> str: #it's import to specify the
18
  """
19
  try:
20
  search = DuckDuckGoSearchTool()
21
- latest_score = search.run(f"What's the Houston Astros score for today's game. Today's date is {todays_date}")
22
  return f"The score for {todays_date} game is: {latest_score}"
23
  except Exception as e:
24
  return f"Error fetching Astros' scores for '{todays_date}': {str(e)}"
@@ -47,7 +47,7 @@ final_answer = FinalAnswerTool()
47
  model = HfApiModel(
48
  max_tokens=2096,
49
  temperature=0.5,
50
- model_id='meta-llama/Llama-3.1-8B-Instruct', #'Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
51
  custom_role_conversions=None,
52
  )
53
 
 
18
  """
19
  try:
20
  search = DuckDuckGoSearchTool()
21
+ latest_score = search(f"What's the Houston Astros score for today's game. Today's date is {todays_date}")
22
  return f"The score for {todays_date} game is: {latest_score}"
23
  except Exception as e:
24
  return f"Error fetching Astros' scores for '{todays_date}': {str(e)}"
 
47
  model = HfApiModel(
48
  max_tokens=2096,
49
  temperature=0.5,
50
+ model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
51
  custom_role_conversions=None,
52
  )
53