diff --git a/fiftyone/utils/huggingface.py b/fiftyone/utils/huggingface.py index 37efad01a8..d81e21eedf 100644 --- a/fiftyone/utils/huggingface.py +++ b/fiftyone/utils/huggingface.py @@ -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