jcg00v commited on
Commit
a68afb9
1 Parent(s): 26ecfef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -174,16 +174,22 @@ def layout(*args):
174
  st.markdown(str(foot), unsafe_allow_html=True)
175
 
176
 
 
 
 
 
 
 
177
  def footer():
178
  logo_path = Path(__file__).with_name("vocali_logo.jpg").parent.absolute()
179
  funding_path = Path(__file__).with_name("logo_funding.png").parent.absolute()
180
 
181
  myargs = [
182
  "Made in ",
183
- image(str(logo_path) + "/vocali_logo.jpg", width=px(50), height=px(50)),
184
  link("https://vocali.net/", "VÓCALI"),
185
  " with funding ",
186
- image(str(funding_path) + "/logo_funding.png", height=px(50), width=px(200)),
187
  br(),
188
  "This work was funded by the Spanish Government, the Spanish Ministry of Economy and Digital Transformation through the Digital Transformation through the 'Recovery, Transformation and Resilience Plan' and also funded by the European Union NextGenerationEU/PRTR through the research project 2021/C005/0015007",
189
  ]
 
174
  st.markdown(str(foot), unsafe_allow_html=True)
175
 
176
 
177
+ def img_to_bytes(img_path):
178
+ img_bytes = Path(img_path).read_bytes()
179
+ encoded = base64.b64encode(img_bytes).decode()
180
+ return encoded
181
+
182
+
183
  def footer():
184
  logo_path = Path(__file__).with_name("vocali_logo.jpg").parent.absolute()
185
  funding_path = Path(__file__).with_name("logo_funding.png").parent.absolute()
186
 
187
  myargs = [
188
  "Made in ",
189
+ image(img_to_bytes(str(logo_path) + "/vocali_logo.jpg"), width=px(50), height=px(50)),
190
  link("https://vocali.net/", "VÓCALI"),
191
  " with funding ",
192
+ image(img_to_bytes(str(funding_path) + "/logo_funding.png"), height=px(50), width=px(200)),
193
  br(),
194
  "This work was funded by the Spanish Government, the Spanish Ministry of Economy and Digital Transformation through the Digital Transformation through the 'Recovery, Transformation and Resilience Plan' and also funded by the European Union NextGenerationEU/PRTR through the research project 2021/C005/0015007",
195
  ]