NILC-ICMC-USP commited on
Commit
22ff296
ยท
verified ยท
1 Parent(s): 6877100

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -8
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"])