added excell and streamlit app
Browse files- app.py +22 -0
- metrics.xlsx +0 -0
app.py
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
import pandas as pd
|
3 |
+
import matplotlib.pyplot as plt
|
4 |
+
|
5 |
+
# Title
|
6 |
+
st.title("Ontology Benchmark Metrics")
|
7 |
+
|
8 |
+
# Load Excel file (assumed to be in the same directory)
|
9 |
+
df = pd.read_excel("metrics.xlsx")
|
10 |
+
|
11 |
+
# Show Data
|
12 |
+
st.subheader("Metrics Table")
|
13 |
+
st.dataframe(df)
|
14 |
+
|
15 |
+
# Visualization
|
16 |
+
st.subheader("Metric Visualization")
|
17 |
+
metric = st.selectbox("Select column to visualize:", df.columns[1:])
|
18 |
+
|
19 |
+
fig, ax = plt.subplots()
|
20 |
+
df.plot(x=df.columns[0], y=metric, kind='bar', ax=ax)
|
21 |
+
st.pyplot(fig)
|
22 |
+
|
metrics.xlsx
ADDED
Binary file (33.5 kB). View file
|
|