Spaces:
Runtime error
Runtime error
Upload tool
Browse files- app.py +2 -1
- requirements.txt +1 -1
- tool_config.json +3 -5
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
1 |
-
from transformers.tools.base import launch_gradio_demo
|
|
|
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 |
-
"
|
3 |
-
|
4 |
-
|
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 |
}
|