m-ric HF staff commited on
Commit
49d7856
1 Parent(s): 8ac8a9e

Update text_download.py

Browse files
Files changed (1) hide show
  1. 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`. It takes the `url` as input, and returns the text"
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