Spaces:
Sleeping
Sleeping
Update agents.py
Browse filesUpdated HFApi to InferenctClient models
agents.py
CHANGED
|
@@ -1,11 +1,11 @@
|
|
| 1 |
-
from smolagents import CodeAgent,
|
| 2 |
from tools import duck_search_tool, visit_web_page_tool, youtube_transcript_search
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
# Initialize the model for agent_1
|
| 7 |
agent_1_instructions = "Search for and retrieve relevant information about the question asked. Do not respond with any thought just the final answer:\n"
|
| 8 |
-
model_1 =
|
| 9 |
"Qwen/Qwen2.5-Coder-32B-Instruct", provider="together", max_tokens=8096
|
| 10 |
)
|
| 11 |
|
|
|
|
| 1 |
+
from smolagents import CodeAgent, LiteLLMModel, InferenceClientModel
|
| 2 |
from tools import duck_search_tool, visit_web_page_tool, youtube_transcript_search
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
# Initialize the model for agent_1
|
| 7 |
agent_1_instructions = "Search for and retrieve relevant information about the question asked. Do not respond with any thought just the final answer:\n"
|
| 8 |
+
model_1 = InferenceClientModel(
|
| 9 |
"Qwen/Qwen2.5-Coder-32B-Instruct", provider="together", max_tokens=8096
|
| 10 |
)
|
| 11 |
|