m-ric commited on
Commit
5c81448
·
verified ·
1 Parent(s): 8b4b8a2

Upload tool

Browse files
Files changed (2) hide show
  1. model_downloads.py +2 -2
  2. tool_config.json +1 -1
model_downloads.py CHANGED
@@ -9,9 +9,9 @@ class HFModelDownloadsTool(Tool):
9
  )
10
 
11
  inputs = {
12
- "name": {
13
  "type": str,
14
- "description": "the name of the category (such as text-classification, depth-estimation, etc)",
15
  }
16
  }
17
  output_type = str
 
9
  )
10
 
11
  inputs = {
12
+ "task": {
13
  "type": str,
14
+ "description": "the task of the category (such as text-classification, depth-estimation, etc)",
15
  }
16
  }
17
  output_type = str
tool_config.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "description": "This is a tool that returns the most downloaded model of a given task on the Hugging Face Hub. It returns the name of the checkpoint.",
3
- "inputs": "{'name': {'type': <class 'str'>, 'description': 'the name of the category (such as text-classification, depth-estimation, etc)'}}",
4
  "name": "model_download_counter",
5
  "output_type": "<class 'str'>",
6
  "tool_class": "model_downloads.HFModelDownloadsTool"
 
1
  {
2
  "description": "This is a tool that returns the most downloaded model of a given task on the Hugging Face Hub. It returns the name of the checkpoint.",
3
+ "inputs": "{'task': {'type': <class 'str'>, 'description': 'the task of the category (such as text-classification, depth-estimation, etc)'}}",
4
  "name": "model_download_counter",
5
  "output_type": "<class 'str'>",
6
  "tool_class": "model_downloads.HFModelDownloadsTool"