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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -12,12 +12,11 @@ def get_data():
12
  Pull the data into a dataframe
13
  """
14
  data = load_dataset(LOGS_DATASET_URI)
15
- data_df = data['train'].to_pandas()
16
 
17
- return data_df
18
 
19
- # Every 5 seconds, pull in the latest data from the dataset and make a
20
- # Bar plot of the predictions
21
 
22
  with gr.Blocks() as demo:
23
  gr.Markdown("Real-time Monitoring Dashboard")
 
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")