Omnibus commited on
Commit
ffb5f68
·
verified ·
1 Parent(s): 7d61465

Update app.py

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