Spaces:
Running
Running
Commit
·
8d60fff
1
Parent(s):
1e98520
Add logging for received submissions in add_submission function
Browse files- gradio_interface.py +2 -0
gradio_interface.py
CHANGED
|
@@ -108,8 +108,10 @@ def display_submissions(task_type="all", search_query=""):
|
|
| 108 |
|
| 109 |
def add_submission(file):
|
| 110 |
try:
|
|
|
|
| 111 |
with open(file, 'r', encoding='utf-8') as f:
|
| 112 |
data = json.load(f)
|
|
|
|
| 113 |
username, sub_timestamp, task = file.replace(
|
| 114 |
".json", "").split("|")
|
| 115 |
submission_time = datetime.fromtimestamp(
|
|
|
|
| 108 |
|
| 109 |
def add_submission(file):
|
| 110 |
try:
|
| 111 |
+
print("Received submission: ", file)
|
| 112 |
with open(file, 'r', encoding='utf-8') as f:
|
| 113 |
data = json.load(f)
|
| 114 |
+
|
| 115 |
username, sub_timestamp, task = file.replace(
|
| 116 |
".json", "").split("|")
|
| 117 |
submission_time = datetime.fromtimestamp(
|