Skip to content

Commit

Permalink
modelId > id
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekkrthakur committed Jul 22, 2024
1 parent fa4f1cc commit bae2408
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/autotrain/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
warnings.filterwarnings("ignore", category=UserWarning, module="huggingface_hub")

logger = Logger().get_logger()
__version__ = "0.8.5.dev0"
__version__ = "0.8.6.dev0"


def is_colab():
Expand Down
2 changes: 1 addition & 1 deletion src/autotrain/app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


def get_sorted_models(hub_models):
hub_models = [{"id": m.modelId, "downloads": m.downloads} for m in hub_models if m.private is False]
hub_models = [{"id": m.id, "downloads": m.downloads} for m in hub_models if m.private is False]
hub_models = sorted(hub_models, key=lambda x: x["downloads"], reverse=True)
hub_models = [m["id"] for m in hub_models]
return hub_models
Expand Down

0 comments on commit bae2408

Please sign in to comment.