Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ import pandas as pd
|
|
| 6 |
import smolagents
|
| 7 |
from smolagents import DuckDuckGoSearchTool, VisitWebpageTool
|
| 8 |
|
| 9 |
-
|
| 10 |
|
| 11 |
# (Keep Constants as is)
|
| 12 |
# --- Constants ---
|
|
@@ -44,7 +44,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 44 |
|
| 45 |
# 1. Instantiate Agent ( modify this part to create your agent)
|
| 46 |
try:
|
| 47 |
-
agent = BasicAgent(tools=[search_tool
|
| 48 |
except Exception as e:
|
| 49 |
print(f"Error instantiating agent: {e}")
|
| 50 |
return f"Error initializing agent: {e}", None
|
|
|
|
| 6 |
import smolagents
|
| 7 |
from smolagents import DuckDuckGoSearchTool, VisitWebpageTool
|
| 8 |
|
| 9 |
+
search_tool = DuckDuckGoSearchTool()
|
| 10 |
|
| 11 |
# (Keep Constants as is)
|
| 12 |
# --- Constants ---
|
|
|
|
| 44 |
|
| 45 |
# 1. Instantiate Agent ( modify this part to create your agent)
|
| 46 |
try:
|
| 47 |
+
agent = BasicAgent(tools=[search_tool], model='Qwen/Qwen2.5-Coder-32B-Instruct')
|
| 48 |
except Exception as e:
|
| 49 |
print(f"Error instantiating agent: {e}")
|
| 50 |
return f"Error initializing agent: {e}", None
|