Skip to content

Commit

Permalink
improve name resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobmarks committed Apr 4, 2024
1 parent 40f7b92 commit d5ea06e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fiftyone/utils/huggingface.py
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,10 @@ def _add_dataset_metadata(dataset, config):
def _resolve_dataset_name(config, **kwargs):
name = kwargs.get("name", None)
if name is None:
name = config.name
if hasattr(config, "name"):
name = config.name
else:
name = config._repo_id
return name


Expand Down

0 comments on commit d5ea06e

Please sign in to comment.