Update app.py
Browse files
app.py
CHANGED
|
@@ -103,7 +103,7 @@ class BasicAgent:
|
|
| 103 |
tools=[
|
| 104 |
DuckDuckGoSearchTool(),
|
| 105 |
VisitWebpageTool(),
|
| 106 |
-
PythonInterpreterTool(),
|
| 107 |
FinalAnswerTool(),
|
| 108 |
#pdf_tool,
|
| 109 |
fetch_task_file,
|
|
@@ -113,7 +113,7 @@ class BasicAgent:
|
|
| 113 |
],
|
| 114 |
model= InferenceClientModel("Qwen/Qwen2.5-Coder-32B-Instruct") ,
|
| 115 |
#additional_authorized_imports=["pandas", "requests", "re"],
|
| 116 |
-
|
| 117 |
max_steps=20,
|
| 118 |
)
|
| 119 |
#answering questions
|
|
|
|
| 103 |
tools=[
|
| 104 |
DuckDuckGoSearchTool(),
|
| 105 |
VisitWebpageTool(),
|
| 106 |
+
#PythonInterpreterTool(),
|
| 107 |
FinalAnswerTool(),
|
| 108 |
#pdf_tool,
|
| 109 |
fetch_task_file,
|
|
|
|
| 113 |
],
|
| 114 |
model= InferenceClientModel("Qwen/Qwen2.5-Coder-32B-Instruct") ,
|
| 115 |
#additional_authorized_imports=["pandas", "requests", "re"],
|
| 116 |
+
instructions = "If the question includes a task_id and mentions a file, call fetch_task_file first; route YouTube URLs to get_youtube_transcript, other URLs to visit_webpage, PDFs to pdf_tool, and spreadsheets to read_spreadsheet, using web_search only when no URL or file is given,then respond with only the exact final answer value, no explanation, no prefix.",
|
| 117 |
max_steps=20,
|
| 118 |
)
|
| 119 |
#answering questions
|