Spaces:
Runtime error
Runtime error
Update text_download.py
Browse files- text_download.py +2 -3
text_download.py
CHANGED
|
@@ -5,14 +5,13 @@ from transformers.tools.base import Tool
|
|
| 5 |
|
| 6 |
|
| 7 |
TEXT_DOWNLOAD_DESCRIPTION = (
|
| 8 |
-
"This is a tool that downloads a file from a `url
|
| 9 |
-
" contained in the file."
|
| 10 |
)
|
| 11 |
|
| 12 |
|
| 13 |
class TextDownloadTool(Tool):
|
| 14 |
name = "text_downloader"
|
| 15 |
-
inputs= {"url": str}
|
| 16 |
output_type= str
|
| 17 |
description = TEXT_DOWNLOAD_DESCRIPTION
|
| 18 |
|
|
|
|
| 5 |
|
| 6 |
|
| 7 |
TEXT_DOWNLOAD_DESCRIPTION = (
|
| 8 |
+
"This is a tool that downloads a file from a `url` and returns the text contained in the tile."
|
|
|
|
| 9 |
)
|
| 10 |
|
| 11 |
|
| 12 |
class TextDownloadTool(Tool):
|
| 13 |
name = "text_downloader"
|
| 14 |
+
inputs= {"url": {"type": str, "description": "url to download file from"}}
|
| 15 |
output_type= str
|
| 16 |
description = TEXT_DOWNLOAD_DESCRIPTION
|
| 17 |
|