lysandre HF staff commited on
Commit
180b4a1
1 Parent(s): f415d88

Upload tool

Browse files
Files changed (3) hide show
  1. app.py +2 -1
  2. requirements.txt +1 -1
  3. tool_config.json +3 -5
app.py CHANGED
@@ -1,3 +1,4 @@
1
- from transformers.tools.base import launch_gradio_demo from model_downloads import HFModelDownloadsTool
 
2
 
3
  launch_gradio_demo(HFModelDownloadsTool)
 
1
+ from transformers.tools.base import launch_gradio_demo
2
+ from model_downloads import HFModelDownloadsTool
3
 
4
  launch_gradio_demo(HFModelDownloadsTool)
requirements.txt CHANGED
@@ -1,2 +1,2 @@
1
- transformers
2
  huggingface_hub
 
 
 
1
  huggingface_hub
2
+ transformers
tool_config.json CHANGED
@@ -1,7 +1,5 @@
1
  {
2
- "h_f_model_downloads": {
3
- "description": "This is a tool that returns the most downloaded model of a given task on the Hugging Face Hub. It takes the name of the category (such as text-classification, depth-estimation, etc), and returns the name of the checkpoint alongside its 30-day download numbers.",
4
- "name": "model-download-counter",
5
- "tool_class": "model_downloads.HFModelDownloadsTool"
6
- }
7
  }
 
1
  {
2
+ "description": "This is a tool that returns the most downloaded model of a given task on the Hugging Face Hub. It takes the name of the category (such as text-classification, depth-estimation, etc), and returns the name of the checkpoint alongside its 30-day download numbers.",
3
+ "name": "model-download-counter",
4
+ "tool_class": "model_downloads.HFModelDownloadsTool"
 
 
5
  }