lewtun HF staff commited on
Commit
482d203
1 Parent(s): fc0cc1d

Fix AutoTrain project name

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
utils.py CHANGED
@@ -193,7 +193,7 @@ def get_dataset_card_url(dataset_id: str) -> str:
193
  def create_autotrain_project_name(dataset_id: str) -> str:
194
  """Creates an AutoTrain project name for the given dataset ID."""
195
  # Project names cannot have "/", so we need to format community datasets accordingly
196
- dataset_id_formatted = dataset_id.replace("/", "--")
197
  # Project names need to be unique, so we append a random string to guarantee this
198
  project_id = str(uuid.uuid4())[:8]
199
  return f"eval-project-{dataset_id_formatted}-{project_id}"
 
193
  def create_autotrain_project_name(dataset_id: str) -> str:
194
  """Creates an AutoTrain project name for the given dataset ID."""
195
  # Project names cannot have "/", so we need to format community datasets accordingly
196
+ dataset_id_formatted = dataset_id.replace("/", "__")
197
  # Project names need to be unique, so we append a random string to guarantee this
198
  project_id = str(uuid.uuid4())[:8]
199
  return f"eval-project-{dataset_id_formatted}-{project_id}"