SushantGautam commited on
Commit
a51385c
Β·
1 Parent(s): 8d60fff

Update submission file naming convention to use custom delimiter

Browse files
gradio_interface.py CHANGED
@@ -122,7 +122,7 @@ def add_submission(file):
122
  print("Adding submission...", username, task, submission_time)
123
  upload_file(
124
  path_or_fileobj=file,
125
- path_in_repo=task+"/"+file.split("/")[-1],
126
  repo_id=SUBMISSION_REPO
127
  )
128
  submissions.append(
 
122
  print("Adding submission...", username, task, submission_time)
123
  upload_file(
124
  path_or_fileobj=file,
125
+ path_in_repo=task+"/"+file.split("-_-_-")[-1],
126
  repo_id=SUBMISSION_REPO
127
  )
128
  submissions.append(
medvqa/competitions/gi-2025/task_1.py CHANGED
@@ -73,7 +73,7 @@ if not MEDVQA_SUBMIT:
73
  else:
74
  print("πŸš€ Preparing for submission πŸš€")
75
  file_path_to_upload = os.path.join(
76
- snap_dir, f"{hf_username}|{current_timestamp}|task1.json")
77
  shutil.copy(os.path.join(snap_dir, file_from_validation),
78
  file_path_to_upload) # Use shutil.copy here
79
  result = client.predict(
 
73
  else:
74
  print("πŸš€ Preparing for submission πŸš€")
75
  file_path_to_upload = os.path.join(
76
+ snap_dir, f"{hf_username}-_-_-{current_timestamp}-_-_-task1.json")
77
  shutil.copy(os.path.join(snap_dir, file_from_validation),
78
  file_path_to_upload) # Use shutil.copy here
79
  result = client.predict(