Update app.py
#21
by
sdeepanraj
- opened
app.py
CHANGED
@@ -35,8 +35,8 @@ class BasicAgent:
|
|
35 |
# token=token,
|
36 |
# custom_role_conversions=None)
|
37 |
self.agent = CodeAgent(
|
38 |
-
model = HfApiModel(),
|
39 |
-
tools = [DuckDuckGoSearchTool()],
|
40 |
#additional_authorized_imports = ["pandas", "numpy"]
|
41 |
)
|
42 |
SYSTEM_PROMPT = """You are a general AI assistant. I will ask you a question.
|
|
|
35 |
# token=token,
|
36 |
# custom_role_conversions=None)
|
37 |
self.agent = CodeAgent(
|
38 |
+
model = HfApiModel(token=token),
|
39 |
+
tools = [DuckDuckGoSearchTool(),WikipediaSearchTool(),VisitWebpageTool()],
|
40 |
#additional_authorized_imports = ["pandas", "numpy"]
|
41 |
)
|
42 |
SYSTEM_PROMPT = """You are a general AI assistant. I will ask you a question.
|