Commit
·
5e75ea4
1
Parent(s):
bcf11a1
Fix time_ago function to return timestamp as a string in UTC format
Browse files- gradio_interface.py +1 -1
gradio_interface.py
CHANGED
@@ -46,7 +46,7 @@ hub_dir = hub_path.split("snapshot")[0] + "snapshot"
|
|
46 |
|
47 |
|
48 |
def time_ago(submitted_time):
|
49 |
-
return datetime.fromtimestamp(int(submitted_time), tz=timezone.utc) + " UTC"
|
50 |
|
51 |
|
52 |
def filter_submissions(task_type, search_query):
|
|
|
46 |
|
47 |
|
48 |
def time_ago(submitted_time):
|
49 |
+
return str(datetime.fromtimestamp(int(submitted_time), tz=timezone.utc)) + " UTC"
|
50 |
|
51 |
|
52 |
def filter_submissions(task_type, search_query):
|