Spaces:
Sleeping
Sleeping
Thomas Bartlett
commited on
Commit
·
12fe825
1
Parent(s):
15864dd
got rid of calculator
Browse files
app.py
CHANGED
@@ -9,7 +9,6 @@ from langchain_huggingface import ChatHuggingFace, HuggingFaceEndpoint
|
|
9 |
from langchain_community.tools import DuckDuckGoSearchRun
|
10 |
from langchain.agents import initialize_agent
|
11 |
from langchain_core.prompts import ChatPromptTemplate
|
12 |
-
from langchain_community.tools.calculator.tool import Calculator
|
13 |
|
14 |
|
15 |
# --- Constants ---
|
@@ -25,7 +24,6 @@ You are GAIA-Bot, a fully-autonomous problem-solver.
|
|
25 |
You have access to these tools:
|
26 |
- gaia_file_fetch – download the file attached to the current task_id.
|
27 |
- duckduckgo_search – look up current facts on the public web.
|
28 |
-
- calculator – evaluate math expressions, percentages, date differences.
|
29 |
|
30 |
If you require a file attached to the current task, download it with
|
31 |
`requests_get("https://agents-course-unit4-scoring.hf.space/files/{task_id}")`
|
@@ -77,7 +75,6 @@ class BasicAgent:
|
|
77 |
tools = [
|
78 |
gaia_file_fetch,
|
79 |
DuckDuckGoSearchRun(),
|
80 |
-
Calculator()
|
81 |
]
|
82 |
|
83 |
prompt = ChatPromptTemplate.from_messages([
|
|
|
9 |
from langchain_community.tools import DuckDuckGoSearchRun
|
10 |
from langchain.agents import initialize_agent
|
11 |
from langchain_core.prompts import ChatPromptTemplate
|
|
|
12 |
|
13 |
|
14 |
# --- Constants ---
|
|
|
24 |
You have access to these tools:
|
25 |
- gaia_file_fetch – download the file attached to the current task_id.
|
26 |
- duckduckgo_search – look up current facts on the public web.
|
|
|
27 |
|
28 |
If you require a file attached to the current task, download it with
|
29 |
`requests_get("https://agents-course-unit4-scoring.hf.space/files/{task_id}")`
|
|
|
75 |
tools = [
|
76 |
gaia_file_fetch,
|
77 |
DuckDuckGoSearchRun(),
|
|
|
78 |
]
|
79 |
|
80 |
prompt = ChatPromptTemplate.from_messages([
|