Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ import wikipedia
|
|
9 |
from Gradio_UI import GradioUI
|
10 |
|
11 |
@tool
|
12 |
-
def
|
13 |
"""Search Wikipedia for factual information about a topic, person, place or concept.
|
14 |
Args:
|
15 |
question: Question about a topic, person, place, or concept: str
|
@@ -62,7 +62,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
62 |
|
63 |
agent = CodeAgent(
|
64 |
model=model,
|
65 |
-
tools=[final_answer, get_current_time_in_timezone], ## add your tools here (don't remove final answer)
|
66 |
max_steps=6,
|
67 |
verbosity_level=1,
|
68 |
grammar=None,
|
|
|
9 |
from Gradio_UI import GradioUI
|
10 |
|
11 |
@tool
|
12 |
+
def wiki_search(question: str) -> str:
|
13 |
"""Search Wikipedia for factual information about a topic, person, place or concept.
|
14 |
Args:
|
15 |
question: Question about a topic, person, place, or concept: str
|
|
|
62 |
|
63 |
agent = CodeAgent(
|
64 |
model=model,
|
65 |
+
tools=[final_answer, get_current_time_in_timezone, wiki_search], ## add your tools here (don't remove final answer)
|
66 |
max_steps=6,
|
67 |
verbosity_level=1,
|
68 |
grammar=None,
|