Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,12 +6,7 @@ import pandas as pd
|
|
| 6 |
import smolagents
|
| 7 |
from smolagents import DuckDuckGoSearchTool, VisitWebpageTool
|
| 8 |
|
| 9 |
-
|
| 10 |
-
max_tokens=2096,
|
| 11 |
-
temperature=0.5,
|
| 12 |
-
model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
|
| 13 |
-
custom_role_conversions=None
|
| 14 |
-
)
|
| 15 |
|
| 16 |
# (Keep Constants as is)
|
| 17 |
# --- Constants ---
|
|
@@ -49,7 +44,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 49 |
|
| 50 |
# 1. Instantiate Agent ( modify this part to create your agent)
|
| 51 |
try:
|
| 52 |
-
agent = BasicAgent(tools=[search_tool, get_latest_news], model=
|
| 53 |
except Exception as e:
|
| 54 |
print(f"Error instantiating agent: {e}")
|
| 55 |
return f"Error initializing agent: {e}", None
|
|
|
|
| 6 |
import smolagents
|
| 7 |
from smolagents import DuckDuckGoSearchTool, VisitWebpageTool
|
| 8 |
|
| 9 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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, get_latest_news], 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
|