Spaces:
Running
Running
Upload tool
Browse files- requirements.txt +1 -1
- tool.py +0 -2
requirements.txt
CHANGED
|
@@ -1,2 +1,2 @@
|
|
| 1 |
-
huggingface_hub
|
| 2 |
smolagents
|
|
|
|
|
|
|
|
|
| 1 |
smolagents
|
| 2 |
+
huggingface_hub
|
tool.py
CHANGED
|
@@ -15,7 +15,5 @@ class HFModelDownloadsTool(Tool):
|
|
| 15 |
model = next(iter(list_models(filter=task, sort="downloads", direction=-1)))
|
| 16 |
return model.id
|
| 17 |
|
| 18 |
-
|
| 19 |
def __init__(self, *args, **kwargs):
|
| 20 |
self.is_initialized = False
|
| 21 |
-
|
|
|
|
| 15 |
model = next(iter(list_models(filter=task, sort="downloads", direction=-1)))
|
| 16 |
return model.id
|
| 17 |
|
|
|
|
| 18 |
def __init__(self, *args, **kwargs):
|
| 19 |
self.is_initialized = False
|
|
|