safiaa02 commited on
Commit
a0b3bb1
·
verified ·
1 Parent(s): eeb9bfa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -112,12 +112,10 @@ fig = px.line(df, x="Timestamp", y="Bandwidth_Usage", color="School", title="Ban
112
  st.plotly_chart(fig)
113
 
114
  st.write("Predicted Bandwidth Allocations:")
115
- for school, bandwidth in bandwidth_allocation.items():
116
- st.write(f"{school}: {bandwidth:.2f} Mbps")
117
 
118
  st.write("SDN-based Load Balancing Routes:")
119
- for school, path in network_routes.items():
120
- st.write(f"{school}: {' -> '.join(path)}")
121
 
122
  st.write("Detected Anomalies:")
123
  st.dataframe(anomalies)
 
112
  st.plotly_chart(fig)
113
 
114
  st.write("Predicted Bandwidth Allocations:")
115
+ st.table(pd.DataFrame(list(bandwidth_allocation.items()), columns=["School", "Allocated Bandwidth (Mbps)"]))
 
116
 
117
  st.write("SDN-based Load Balancing Routes:")
118
+ st.table(pd.DataFrame([(school, ' -> '.join(path)) for school, path in network_routes.items()], columns=["School", "Route"]))
 
119
 
120
  st.write("Detected Anomalies:")
121
  st.dataframe(anomalies)