Spaces:
Sleeping
Sleeping
Added wikiquotes tool
Browse files
app.py
CHANGED
|
@@ -4,18 +4,18 @@ import requests
|
|
| 4 |
import pytz
|
| 5 |
import yaml
|
| 6 |
from tools.final_answer import FinalAnswerTool
|
| 7 |
-
|
| 8 |
|
| 9 |
from Gradio_UI import GradioUI
|
| 10 |
|
| 11 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 12 |
@tool
|
| 13 |
-
def
|
| 14 |
-
"""A tool for
|
| 15 |
Args:
|
| 16 |
-
|
| 17 |
"""
|
| 18 |
-
results =
|
| 19 |
|
| 20 |
return results
|
| 21 |
|
|
|
|
| 4 |
import pytz
|
| 5 |
import yaml
|
| 6 |
from tools.final_answer import FinalAnswerTool
|
| 7 |
+
import wikiquotes
|
| 8 |
|
| 9 |
from Gradio_UI import GradioUI
|
| 10 |
|
| 11 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 12 |
@tool
|
| 13 |
+
def wikiquotes_quotes(person_name:str)-> str:
|
| 14 |
+
"""A tool for getting quotes from the wikiquotes database
|
| 15 |
Args:
|
| 16 |
+
person_name: Name of the person to get quote from
|
| 17 |
"""
|
| 18 |
+
results = wikiquotes.search(person_name)
|
| 19 |
|
| 20 |
return results
|
| 21 |
|