Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -314,7 +314,10 @@ 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 |
-
|
|
|
|
|
|
|
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 |
+
filename=f_ist[0].split("/")[1].split(".json")[0]
|
318 |
+
print (filename)
|
319 |
+
filename = filename.replace("--"," ").replace("-"[4],":").replace("-"[5],":").replace("-"[6],".")
|
320 |
+
print (filename)
|
321 |
yield lod,[(None,f'Source is current as of:\n{timename} UTC\n\nThe current Date and Time is:\n{timestamp} UTC')]
|
322 |
|
323 |
with gr.Blocks() as app:
|