Update app.py
Browse files
app.py
CHANGED
|
@@ -88,22 +88,20 @@ class BasicAgent:
|
|
| 88 |
#trust_remote_code=True,
|
| 89 |
#)
|
| 90 |
|
| 91 |
-
pdf_tool = load_tool(
|
| 92 |
-
"matterattetatte/pdf-upload-extractor-tool",
|
| 93 |
-
|
| 94 |
-
)
|
| 95 |
self.agent = CodeAgent(
|
| 96 |
tools=[
|
| 97 |
DuckDuckGoSearchTool(),
|
| 98 |
VisitWebpageTool(),
|
| 99 |
PythonInterpreterTool(),
|
| 100 |
FinalAnswerTool(),
|
| 101 |
-
pdf_tool,
|
| 102 |
fetch_task_file,
|
| 103 |
read_spreadsheet,
|
| 104 |
get_youtube_transcript,
|
| 105 |
-
#os.environ["HF_TOKEN"] = "hf_token",
|
| 106 |
-
#image_analysis_tool,
|
| 107 |
],
|
| 108 |
model= InferenceClientModel("Qwen/Qwen2.5-Coder-32B-Instruct"),
|
| 109 |
#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.",
|
|
|
|
| 88 |
#trust_remote_code=True,
|
| 89 |
#)
|
| 90 |
|
| 91 |
+
#pdf_tool = load_tool(
|
| 92 |
+
#"matterattetatte/pdf-upload-extractor-tool",
|
| 93 |
+
# trust_remote_code = True
|
| 94 |
+
#)
|
| 95 |
self.agent = CodeAgent(
|
| 96 |
tools=[
|
| 97 |
DuckDuckGoSearchTool(),
|
| 98 |
VisitWebpageTool(),
|
| 99 |
PythonInterpreterTool(),
|
| 100 |
FinalAnswerTool(),
|
| 101 |
+
#pdf_tool,
|
| 102 |
fetch_task_file,
|
| 103 |
read_spreadsheet,
|
| 104 |
get_youtube_transcript,
|
|
|
|
|
|
|
| 105 |
],
|
| 106 |
model= InferenceClientModel("Qwen/Qwen2.5-Coder-32B-Instruct"),
|
| 107 |
#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.",
|