Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -314,7 +314,7 @@ def load_data():
|
|
314 |
r = requests.get(f'{save_data}{f_ist[0]}')
|
315 |
lod = json.loads(r.text)
|
316 |
timestamp=str(datetime.datetime.now())
|
317 |
-
timename=
|
318 |
yield lod,[(None,f'Source is current as of:\n{timename} UTC\n\nThe current Date and Time is:\n{timestamp} UTC')]
|
319 |
|
320 |
with gr.Blocks() as app:
|
|
|
314 |
r = requests.get(f'{save_data}{f_ist[0]}')
|
315 |
lod = json.loads(r.text)
|
316 |
timestamp=str(datetime.datetime.now())
|
317 |
+
timename=f_ist[0].split("/")[1].split(".json")[0].replace("--"," ").replace("-"[0],":").replace("-"[0],".")
|
318 |
yield lod,[(None,f'Source is current as of:\n{timename} UTC\n\nThe current Date and Time is:\n{timestamp} UTC')]
|
319 |
|
320 |
with gr.Blocks() as app:
|