Jason commited on
Commit
16b3a18
·
unverified ·
1 Parent(s): 0aeab65

minor contact info dataset commit message adjustment, follow-on to #86 (#91)

Browse files
Files changed (1) hide show
  1. submission.py +3 -2
submission.py CHANGED
@@ -86,6 +86,7 @@ def upload_submission(
86
  _validate_path_component(CONFIG_NAME, "config_name")
87
  _validate_path_component(split, "split")
88
  _validate_path_component(submission_name, "submission_name")
 
89
  api.upload_folder(
90
  folder_path=folder_path,
91
  path_in_repo=f"{CONFIG_NAME}/{split}/{submission_name}",
@@ -93,9 +94,9 @@ def upload_submission(
93
  repo_type="dataset",
94
  # Reminder: This may be going into a public dataset.
95
  # Don't put private information in commit message such as email.
96
- commit_message=f'Submission "{submission_name}" to split "{split}" from hf user "{hf_username}"',
97
  )
98
- return f"hf://datasets/{SUBMISSION_DATASET}/{CONFIG_NAME}/{split}/{submission_name}"
99
 
100
  def show_loading_spinner():
101
  return gr.update(visible=True)
 
86
  _validate_path_component(CONFIG_NAME, "config_name")
87
  _validate_path_component(split, "split")
88
  _validate_path_component(submission_name, "submission_name")
89
+ dataset_url = f"hf://datasets/{SUBMISSION_DATASET}/{CONFIG_NAME}/{split}/{submission_name}"
90
  api.upload_folder(
91
  folder_path=folder_path,
92
  path_in_repo=f"{CONFIG_NAME}/{split}/{submission_name}",
 
94
  repo_type="dataset",
95
  # Reminder: This may be going into a public dataset.
96
  # Don't put private information in commit message such as email.
97
+ commit_message=f'Submission from hf user "{hf_username}" to "{dataset_url}"',
98
  )
99
+ return dataset_url
100
 
101
  def show_loading_spinner():
102
  return gr.update(visible=True)