Update app.py
Browse files
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 |
-
|
| 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)
|