Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,6 +9,7 @@ from smolagents.agent_types import AgentImage
|
|
| 9 |
import uuid
|
| 10 |
import requests
|
| 11 |
import os
|
|
|
|
| 12 |
|
| 13 |
CRICKET_API_KEY = os.getenv("CRICKET_API_KEY")
|
| 14 |
|
|
@@ -193,7 +194,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 193 |
prompt_templates = yaml.safe_load(stream)
|
| 194 |
|
| 195 |
|
| 196 |
-
agent =
|
| 197 |
model=model,
|
| 198 |
tools=[final_answer, generate_image, get_current_time_in_timezone, get_live_cricket_score, get_today_matches, wiki_search], ## add your tools here (don't remove final answer)
|
| 199 |
max_steps=6,
|
|
|
|
| 9 |
import uuid
|
| 10 |
import requests
|
| 11 |
import os
|
| 12 |
+
from smolagents import ToolCallingAgent
|
| 13 |
|
| 14 |
CRICKET_API_KEY = os.getenv("CRICKET_API_KEY")
|
| 15 |
|
|
|
|
| 194 |
prompt_templates = yaml.safe_load(stream)
|
| 195 |
|
| 196 |
|
| 197 |
+
agent = ToolCallingAgent(
|
| 198 |
model=model,
|
| 199 |
tools=[final_answer, generate_image, get_current_time_in_timezone, get_live_cricket_score, get_today_matches, wiki_search], ## add your tools here (don't remove final answer)
|
| 200 |
max_steps=6,
|