File size: 494 Bytes
3b54515
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import streamlit as st
import pandas as pd
import matplotlib.pyplot as plt

# Title
st.title("Ontology Benchmark Metrics")

# Load Excel file (assumed to be in the same directory)
df = pd.read_excel("metrics.xlsx")

# Show Data
st.subheader("Metrics Table")
st.dataframe(df)

# Visualization
st.subheader("Metric Visualization")
metric = st.selectbox("Select column to visualize:", df.columns[1:])

fig, ax = plt.subplots()
df.plot(x=df.columns[0], y=metric, kind='bar', ax=ax)
st.pyplot(fig)