Skip to content

Commit ea0e1c2

Browse files
Create aura_web.py
1 parent e41f466 commit ea0e1c2

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

scripts/aura_web.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import streamlit as st
2+
import pandas as pd
3+
import pickle
4+
import os
5+
import plotly.express as px
6+
7+
st.set_page_config(page_title="Aura Dashboard", layout="wide")
8+
st.title("🌌 Aura Dashboard (.ser-powered)")
9+
10+
ser_folder = "./data/serialized"
11+
ser_files = [f for f in os.listdir(ser_folder) if f.endswith(".ser")]
12+
13+
for ser_file in ser_files:
14+
path = os.path.join(ser_folder, ser_file)
15+
with open(path, "rb") as f:
16+
df = pickle.load(f)
17+
st.subheader(ser_file.replace(".ser",""))
18+
st.dataframe(df)
19+
20+
# Plot numeric columns
21+
numeric_cols = df.select_dtypes(include='number').columns
22+
for col in numeric_cols:
23+
fig = px.bar(df, x=df.columns[0], y=col, title=f"{ser_file} - {col}")
24+
st.plotly_chart(fig, use_container_width=True)

0 commit comments

Comments
 (0)