Spaces:
Runtime error
Runtime error
patrickvonplaten
commited on
Commit
•
8477702
1
Parent(s):
a59fb21
Update model_downloads.py
Browse files- model_downloads.py +1 -0
model_downloads.py
CHANGED
@@ -15,3 +15,4 @@ class HFModelDownloadsTool(Tool):
|
|
15 |
|
16 |
def __call__(self, task: str):
|
17 |
model = next(iter(list_models(filter=task, sort="downloads", direction=-1)))
|
|
|
|
15 |
|
16 |
def __call__(self, task: str):
|
17 |
model = next(iter(list_models(filter=task, sort="downloads", direction=-1)))
|
18 |
+
return model.id
|