Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,19 +31,14 @@ wolfram.run("What is 2x+5 = -3x + 7?")
|
|
| 31 |
|
| 32 |
"""## Standard Tool"""
|
| 33 |
|
| 34 |
-
|
| 35 |
from langchain.agents import Tool
|
| 36 |
from langchain.tools import BaseTool
|
| 37 |
from langchain.agents import load_tools, initialize_agent, AgentType
|
| 38 |
|
| 39 |
-
|
| 40 |
# defining a single tool
|
| 41 |
tools = [
|
| 42 |
-
Tool(
|
| 43 |
-
name = "search",
|
| 44 |
-
func=search.run,
|
| 45 |
-
description="useful for when Da Vinci needs to answer questions about current events. You should ask targeted questions"
|
| 46 |
-
),
|
| 47 |
Tool(
|
| 48 |
name = "wikipedia",
|
| 49 |
func=wikipedia.run,
|
|
|
|
| 31 |
|
| 32 |
"""## Standard Tool"""
|
| 33 |
|
| 34 |
+
|
| 35 |
from langchain.agents import Tool
|
| 36 |
from langchain.tools import BaseTool
|
| 37 |
from langchain.agents import load_tools, initialize_agent, AgentType
|
| 38 |
|
| 39 |
+
|
| 40 |
# defining a single tool
|
| 41 |
tools = [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
Tool(
|
| 43 |
name = "wikipedia",
|
| 44 |
func=wikipedia.run,
|