Update tools.py
Browse files
tools.py
CHANGED
|
@@ -9,7 +9,7 @@ from transformers import Qwen2VLForConditionalGeneration, AutoTokenizer, AutoPro
|
|
| 9 |
from qwen_vl_utils import process_vision_info
|
| 10 |
|
| 11 |
class Web_research(Tool):
|
| 12 |
-
name="
|
| 13 |
description = "Web search on a specific topic."
|
| 14 |
inputs = {
|
| 15 |
"topic": {
|
|
@@ -26,7 +26,7 @@ class Web_research(Tool):
|
|
| 26 |
return f"Here is what we can find on the web for {topic} : str({results})"
|
| 27 |
|
| 28 |
class Find_wikipedia_URL(Tool):
|
| 29 |
-
name="
|
| 30 |
description = "Always use to check a wikipedia ENGLISH URL page before trying to acces the URL. For another langage, you just have to change the beginning of the url (here, it is en for english)"
|
| 31 |
inputs = {
|
| 32 |
"subject": {
|
|
@@ -172,7 +172,7 @@ class audio_or_mp3__interpreter(Tool):
|
|
| 172 |
return result["text"]
|
| 173 |
|
| 174 |
class Wikipedia_reader(Tool):
|
| 175 |
-
name="
|
| 176 |
description = "To be used whenever you need to read a Wikipedia page. Will return all the text of the Wikipedia page, to easily read it and find information"
|
| 177 |
inputs = {
|
| 178 |
"url": {
|
|
|
|
| 9 |
from qwen_vl_utils import process_vision_info
|
| 10 |
|
| 11 |
class Web_research(Tool):
|
| 12 |
+
name="web_search"
|
| 13 |
description = "Web search on a specific topic."
|
| 14 |
inputs = {
|
| 15 |
"topic": {
|
|
|
|
| 26 |
return f"Here is what we can find on the web for {topic} : str({results})"
|
| 27 |
|
| 28 |
class Find_wikipedia_URL(Tool):
|
| 29 |
+
name="wiki_url_tool"
|
| 30 |
description = "Always use to check a wikipedia ENGLISH URL page before trying to acces the URL. For another langage, you just have to change the beginning of the url (here, it is en for english)"
|
| 31 |
inputs = {
|
| 32 |
"subject": {
|
|
|
|
| 172 |
return result["text"]
|
| 173 |
|
| 174 |
class Wikipedia_reader(Tool):
|
| 175 |
+
name="wiki_tool"
|
| 176 |
description = "To be used whenever you need to read a Wikipedia page. Will return all the text of the Wikipedia page, to easily read it and find information"
|
| 177 |
inputs = {
|
| 178 |
"url": {
|