Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -73,6 +73,15 @@ def img_to_html(img_path, img_style='max-width: 100%;'):
|
|
73 |
img_html = f"<img src='data:image/png;base64,{img_to_bytes(img_path)}' style='{img_style}'>"
|
74 |
return img_html
|
75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
st.set_page_config(
|
77 |
page_title="PortiLexicon-UD",
|
78 |
layout="centered",
|
@@ -89,14 +98,6 @@ lang_options = {
|
|
89 |
}
|
90 |
selected = st.sidebar.radio("๐ Interface", list(lang_options.keys()))
|
91 |
t = translations[lang_options[selected]]
|
92 |
-
st.markdown("""
|
93 |
-
<style>
|
94 |
-
[data-testid="collapsedControl"]::after {
|
95 |
-
content: " ๐ง๐ท๐บ๐ธ๐ซ๐ท๐ฎ๐น๐ช๐ธ";
|
96 |
-
margin-left: 5px;
|
97 |
-
}
|
98 |
-
</style>
|
99 |
-
""", unsafe_allow_html=True)
|
100 |
|
101 |
# Streamlit app title and introduction
|
102 |
st.title(t["title"])
|
|
|
73 |
img_html = f"<img src='data:image/png;base64,{img_to_bytes(img_path)}' style='{img_style}'>"
|
74 |
return img_html
|
75 |
|
76 |
+
st.markdown("""
|
77 |
+
<style>
|
78 |
+
[data-testid="collapsedControl"]::after {
|
79 |
+
content: " ๐ง๐ท๐บ๐ธ๐ซ๐ท๐ฎ๐น๐ช๐ธ";
|
80 |
+
margin-left: 5px;
|
81 |
+
}
|
82 |
+
</style>
|
83 |
+
""", unsafe_allow_html=True)
|
84 |
+
|
85 |
st.set_page_config(
|
86 |
page_title="PortiLexicon-UD",
|
87 |
layout="centered",
|
|
|
98 |
}
|
99 |
selected = st.sidebar.radio("๐ Interface", list(lang_options.keys()))
|
100 |
t = translations[lang_options[selected]]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
|
102 |
# Streamlit app title and introduction
|
103 |
st.title(t["title"])
|