pgurazada1 commited on
Commit
634f358
·
verified ·
1 Parent(s): e85cfaa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -12,11 +12,9 @@ def get_data():
12
  Pull the data into a dataframe
13
  """
14
  data = load_dataset(LOGS_DATASET_URI)
15
- tail_df = data['train'].to_pandas().tail(5)
16
 
17
- return tail_df
18
-
19
- # Every 5 seconds, pull in the latest data from the HF dataset
20
 
21
  with gr.Blocks() as demo:
22
  gr.Markdown("Real-time Monitoring Dashboard")
 
12
  Pull the data into a dataframe
13
  """
14
  data = load_dataset(LOGS_DATASET_URI)
15
+ sample_df = data['train'].to_pandas().sample(5)
16
 
17
+ return sample_df
 
 
18
 
19
  with gr.Blocks() as demo:
20
  gr.Markdown("Real-time Monitoring Dashboard")