Commit
·
22c03cf
1
Parent(s):
6088ece
Add UTC timestamp logging for submission in task_1 script
Browse files
medvqa/competitions/gi-2025/task_1.py
CHANGED
@@ -6,6 +6,7 @@ import argparse
|
|
6 |
import os
|
7 |
import subprocess as sp
|
8 |
import time
|
|
|
9 |
import shutil # Add this import
|
10 |
|
11 |
MEDVQA_SUBMIT = True if os.environ.get(
|
@@ -80,6 +81,9 @@ else:
|
|
80 |
file=handle_file(file_path_to_upload),
|
81 |
api_name="/add_submission"
|
82 |
)
|
|
|
|
|
|
|
83 |
print(result)
|
84 |
print("Visit this URL to see the entry: 👇")
|
85 |
Client("SushantGautam/medvqa")
|
|
|
6 |
import os
|
7 |
import subprocess as sp
|
8 |
import time
|
9 |
+
from datetime import datetime, timezone
|
10 |
import shutil # Add this import
|
11 |
|
12 |
MEDVQA_SUBMIT = True if os.environ.get(
|
|
|
81 |
file=handle_file(file_path_to_upload),
|
82 |
api_name="/add_submission"
|
83 |
)
|
84 |
+
print({"User": hf_username, "Task": "task1",
|
85 |
+
"Submitted_time": str(datetime.fromtimestamp(int(current_timestamp), tz=timezone.utc)) + " UTC"
|
86 |
+
})
|
87 |
print(result)
|
88 |
print("Visit this URL to see the entry: 👇")
|
89 |
Client("SushantGautam/medvqa")
|