SushantGautam commited on
Commit
1507e7a
Β·
1 Parent(s): 23a2412

Refactor add_submission to call refresh_submissions for better clarity

Browse files
Files changed (1) hide show
  1. gradio_interface.py +1 -1
gradio_interface.py CHANGED
@@ -93,7 +93,7 @@ def add_submission(file):
93
  path_in_repo=task+"/"+file.split("/")[-1],
94
  repo_id=SUBMISSION_REPO
95
  )
96
- submissions = None # Refresh submissions
97
  return "πŸ’ͺπŸ†πŸŽ‰ Submissions registered successfully to the system!"
98
  except Exception as e:
99
  raise Exception(f"Error adding submission: {e}")
 
93
  path_in_repo=task+"/"+file.split("/")[-1],
94
  repo_id=SUBMISSION_REPO
95
  )
96
+ refresh_submissions()
97
  return "πŸ’ͺπŸ†πŸŽ‰ Submissions registered successfully to the system!"
98
  except Exception as e:
99
  raise Exception(f"Error adding submission: {e}")