Omnibus commited on
Commit
c535fc7
·
verified ·
1 Parent(s): 0ed4f05

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -306,7 +306,7 @@ def find_rss():
306
  yield out_box,[(None,f'Source is current as of:\n{timestamp} UTC\n\nThe current Date and Time is:\n{timestamp} UTC')]
307
 
308
  def load_data():
309
- yield out_box,[(None,f'Loading data source, please wait')]
310
 
311
  f_ist = (api.list_repo_files(repo_id=reponame, repo_type="dataset"))
312
  f_ist.sort(reverse=True)
@@ -315,7 +315,7 @@ def load_data():
315
  lod = json.loads(r.text)
316
  timestamp=str(datetime.datetime.now())
317
  timename=timestamp.replace("--"," ").replace("-"[0],":").replace("-"[1],".")
318
- yield out_box,[(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:
321
  cb = gr.Chatbot(height=500)
 
306
  yield out_box,[(None,f'Source is current as of:\n{timestamp} UTC\n\nThe current Date and Time is:\n{timestamp} UTC')]
307
 
308
  def load_data():
309
+ yield None,[(None,f'Loading data source, please wait')]
310
 
311
  f_ist = (api.list_repo_files(repo_id=reponame, repo_type="dataset"))
312
  f_ist.sort(reverse=True)
 
315
  lod = json.loads(r.text)
316
  timestamp=str(datetime.datetime.now())
317
  timename=timestamp.replace("--"," ").replace("-"[0],":").replace("-"[1],".")
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:
321
  cb = gr.Chatbot(height=500)