changed text for 3d graph tab, changed sidebar width and logo width
Browse files
app.py
CHANGED
|
@@ -88,8 +88,21 @@ styles_vertical = {
|
|
| 88 |
}
|
| 89 |
}
|
| 90 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
with st.sidebar:
|
| 92 |
-
st.image('images/AGALMA_logo.png', width=
|
| 93 |
# st.markdown('# ἄγαλμα | AGALMA')
|
| 94 |
selected = option_menu('ἄγαλμα | AGALMA', ["App", "About", "FAQ", "License"],
|
| 95 |
menu_icon="menu", default_index=0, orientation="vertical", styles=styles_vertical)
|
|
@@ -222,7 +235,13 @@ if selected == "App":
|
|
| 222 |
# 3D graph tab
|
| 223 |
elif active_tab == "3D graph":
|
| 224 |
st.markdown("## 3D graph")
|
| 225 |
-
st.markdown('
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 226 |
|
| 227 |
col1, col2 = st.columns(2)
|
| 228 |
|
|
|
|
| 88 |
}
|
| 89 |
}
|
| 90 |
|
| 91 |
+
# Set vertical sidebar width to 350px
|
| 92 |
+
st.markdown(
|
| 93 |
+
"""
|
| 94 |
+
<style>
|
| 95 |
+
section[data-testid="stSidebar"] {
|
| 96 |
+
width: 350px !important; # Set the width to your desired value
|
| 97 |
+
}
|
| 98 |
+
</style>
|
| 99 |
+
""",
|
| 100 |
+
unsafe_allow_html=True,
|
| 101 |
+
)
|
| 102 |
+
|
| 103 |
+
|
| 104 |
with st.sidebar:
|
| 105 |
+
st.image('images/AGALMA_logo.png', width=150)
|
| 106 |
# st.markdown('# ἄγαλμα | AGALMA')
|
| 107 |
selected = option_menu('ἄγαλμα | AGALMA', ["App", "About", "FAQ", "License"],
|
| 108 |
menu_icon="menu", default_index=0, orientation="vertical", styles=styles_vertical)
|
|
|
|
| 235 |
# 3D graph tab
|
| 236 |
elif active_tab == "3D graph":
|
| 237 |
st.markdown("## 3D graph")
|
| 238 |
+
st.markdown('''
|
| 239 |
+
Here you can generate a 3D representation of the semantic space surrounding a target lemma. Please choose the lemma and the time slice.\
|
| 240 |
+
|
| 241 |
+
**NB**: the 3D representations are reductions of the multi-dimensional representations created by the models. \
|
| 242 |
+
This is necessary for visualization, but while reducing the dimnesions some informations gets lost. \
|
| 243 |
+
The 3D representations are thus not 100% accurate. For more information, please consult the FAQ.
|
| 244 |
+
''')
|
| 245 |
|
| 246 |
col1, col2 = st.columns(2)
|
| 247 |
|