Spaces:
Sleeping
Sleeping
removed minor line
Browse files- __pycache__/tools.cpython-311.pyc +0 -0
- tools.py +1 -13
__pycache__/tools.cpython-311.pyc
CHANGED
|
Binary files a/__pycache__/tools.cpython-311.pyc and b/__pycache__/tools.cpython-311.pyc differ
|
|
|
tools.py
CHANGED
|
@@ -59,8 +59,6 @@ hub_stats_tool = Tool(
|
|
| 59 |
description="Search HuggingFace Hub for model statistics, downloads, and author information. Use this when asking about specific models, authors, or HuggingFace Hub data."
|
| 60 |
)
|
| 61 |
|
| 62 |
-
print(hub_stats_tool.invoke("google"))
|
| 63 |
-
|
| 64 |
# DEFINE WEB SEARCH TOOLS
|
| 65 |
web_search_tool = Tool(
|
| 66 |
name="search_tool",
|
|
@@ -68,12 +66,9 @@ web_search_tool = Tool(
|
|
| 68 |
description="Search the general web for current information, news, and general knowledge. Use this for questions about companies, people, events, etc."
|
| 69 |
)
|
| 70 |
|
| 71 |
-
|
| 72 |
-
pp = pprint.PrettyPrinter()
|
| 73 |
-
print(pp.pprint(results))
|
| 74 |
|
| 75 |
|
| 76 |
-
# REVERSE TOOLS
|
| 77 |
def ReverseTextTool(text: str) -> str:
|
| 78 |
"""Reverses the order of characters in a given text string."""
|
| 79 |
try:
|
|
@@ -88,10 +83,6 @@ reverse_text_tool = Tool(
|
|
| 88 |
description="Reverses the order of characters in a given text string. Use this when you need to reverse text."
|
| 89 |
)
|
| 90 |
|
| 91 |
-
results = reverse_text_tool.invoke("what is the matrix?")
|
| 92 |
-
pp = pprint.PrettyPrinter()
|
| 93 |
-
print(pp.pprint(results))
|
| 94 |
-
|
| 95 |
# DOWNLOAD A FILE
|
| 96 |
|
| 97 |
|
|
@@ -119,9 +110,6 @@ download_file_tool = Tool(
|
|
| 119 |
description="Downloads a file from a given URL and returns the local file path."
|
| 120 |
)
|
| 121 |
|
| 122 |
-
results = download_file_tool.invoke("https://www.google.com")
|
| 123 |
-
print(results)
|
| 124 |
-
|
| 125 |
# PYTHON CODE EXECUTION TOOL
|
| 126 |
|
| 127 |
|
|
|
|
| 59 |
description="Search HuggingFace Hub for model statistics, downloads, and author information. Use this when asking about specific models, authors, or HuggingFace Hub data."
|
| 60 |
)
|
| 61 |
|
|
|
|
|
|
|
| 62 |
# DEFINE WEB SEARCH TOOLS
|
| 63 |
web_search_tool = Tool(
|
| 64 |
name="search_tool",
|
|
|
|
| 66 |
description="Search the general web for current information, news, and general knowledge. Use this for questions about companies, people, events, etc."
|
| 67 |
)
|
| 68 |
|
| 69 |
+
# REVERSE TOOLS
|
|
|
|
|
|
|
| 70 |
|
| 71 |
|
|
|
|
| 72 |
def ReverseTextTool(text: str) -> str:
|
| 73 |
"""Reverses the order of characters in a given text string."""
|
| 74 |
try:
|
|
|
|
| 83 |
description="Reverses the order of characters in a given text string. Use this when you need to reverse text."
|
| 84 |
)
|
| 85 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
# DOWNLOAD A FILE
|
| 87 |
|
| 88 |
|
|
|
|
| 110 |
description="Downloads a file from a given URL and returns the local file path."
|
| 111 |
)
|
| 112 |
|
|
|
|
|
|
|
|
|
|
| 113 |
# PYTHON CODE EXECUTION TOOL
|
| 114 |
|
| 115 |
|