Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,7 +27,7 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
| 27 |
# from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
|
| 28 |
|
| 29 |
# # Initialize the DuckDuckGo search tool
|
| 30 |
-
|
| 31 |
|
| 32 |
# # Example usage
|
| 33 |
# results = search_tool("Who's the current President of France?")
|
|
@@ -104,7 +104,7 @@ model = HfApiModel(
|
|
| 104 |
#max_tokens=2096,
|
| 105 |
temperature=0.5,
|
| 106 |
#model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
|
| 107 |
-
model_id="meta-llama/Llama-3.3-70B-Instruct",
|
| 108 |
#custom_role_conversions=None,
|
| 109 |
)
|
| 110 |
|
|
|
|
| 27 |
# from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
|
| 28 |
|
| 29 |
# # Initialize the DuckDuckGo search tool
|
| 30 |
+
search_tool = DuckDuckGoSearchTool()
|
| 31 |
|
| 32 |
# # Example usage
|
| 33 |
# results = search_tool("Who's the current President of France?")
|
|
|
|
| 104 |
#max_tokens=2096,
|
| 105 |
temperature=0.5,
|
| 106 |
#model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
|
| 107 |
+
model_id="meta-llama/Llama-3.2-3B-Instruct", #"meta-llama/Llama-3.3-70B-Instruct",
|
| 108 |
#custom_role_conversions=None,
|
| 109 |
)
|
| 110 |
|