File size: 641 Bytes
f883d5a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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)