Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
16 |
|
17 |
-
return
|
18 |
|
19 |
-
# Every 5 seconds, pull in the latest data from the dataset
|
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")
|