SushantGautam commited on
Commit
5d6cd88
Β·
1 Parent(s): c6b2561

Call refresh_submissions after adding a new submission to update the submission list

Browse files
Files changed (1) hide show
  1. gradio_interface.py +1 -0
gradio_interface.py CHANGED
@@ -95,6 +95,7 @@ def add_submission(file):
95
  path_in_repo=task+"/"+file.split("/")[-1],
96
  repo_id=SUBMISSION_REPO
97
  )
 
98
  submissions.append(
99
  {"user": username, "task": task, "submitted_time": submission_time})
100
  return "πŸ’ͺπŸ†πŸŽ‰ Submissions added successfully! Visit this URL ⬆️ to see the entry."
 
95
  path_in_repo=task+"/"+file.split("/")[-1],
96
  repo_id=SUBMISSION_REPO
97
  )
98
+ refresh_submissions()
99
  submissions.append(
100
  {"user": username, "task": task, "submitted_time": submission_time})
101
  return "πŸ’ͺπŸ†πŸŽ‰ Submissions added successfully! Visit this URL ⬆️ to see the entry."