Spaces:
Sleeping
Sleeping
import streamlit as st | |
import streamlit.components.v1 as components | |
# Streamlit app | |
st.title("Demo Vivatech") | |
def load_figures(path="figures/general_fig.html"): | |
element = open(path, "r", encoding="utf-8") | |
return components.html(element.read(), height=1200, width=1200) | |
# Display each figure | |
figure_paths = [ | |
"figures/fig_automated_readibility.html", | |
"figures/fig_bunka_metrics.html", | |
"figures/fig_med.html", | |
"figures/fig_men.html", | |
"figures/fig_perplexity.html", | |
"figures/fig_sport.html", | |
"figures/fig_women.html", | |
"figures/general_fig.html", | |
] | |
for path in figure_paths: | |
load_figures(path) | |