Omnibus commited on
Commit
0d6cf3f
·
verified ·
1 Parent(s): ffb5f68

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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
- 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:
 
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: