Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
16 |
|
17 |
-
return
|
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")
|