Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 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='
|
| 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 |
|