Commit
Β·
1507e7a
1
Parent(s):
23a2412
Refactor add_submission to call refresh_submissions for better clarity
Browse files- 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 |
-
|
| 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}")
|