Spaces:
Sleeping
Sleeping
Removed direction parameter from list_models function
Browse files
tools.py
CHANGED
|
@@ -38,7 +38,7 @@ class HubStatsTool(Tool):
|
|
| 38 |
def forward(self, author: str):
|
| 39 |
try:
|
| 40 |
# List models from the specified author, sorted by downloads
|
| 41 |
-
models = list(list_models(author=author, sort="downloads",
|
| 42 |
|
| 43 |
if models:
|
| 44 |
model = models[0]
|
|
|
|
| 38 |
def forward(self, author: str):
|
| 39 |
try:
|
| 40 |
# List models from the specified author, sorted by downloads
|
| 41 |
+
models = list(list_models(author=author, sort="downloads", limit=1))
|
| 42 |
|
| 43 |
if models:
|
| 44 |
model = models[0]
|