wiknwo commited on
Commit
995b501
·
verified ·
1 Parent(s): a0f2a6e

Removed direction parameter from list_models function

Browse files
Files changed (1) hide show
  1. tools.py +1 -1
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", direction=-1, limit=1))
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]