jcg00v commited on
Commit
f032afa
1 Parent(s): efb07c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -4,6 +4,7 @@ from transformers import pipeline, AutoModelForTokenClassification, AutoTokenize
4
  from htbuilder import HtmlElement, div, ul, li, br, hr, a, p, img, styles, classes, fonts
5
  from htbuilder.units import percent, px
6
  from htbuilder.funcs import rgba, rgb
 
7
 
8
  def clear_text():
9
  st.session_state.text = st.session_state.widget
@@ -174,12 +175,15 @@ def layout(*args):
174
 
175
 
176
  def footer():
 
 
 
177
  myargs = [
178
  "Made in ",
179
- image('vocali_logo.jpg', width=px(50), height=px(50)),
180
  link("https://vocali.net/", "VÓCALI"),
181
  "with funding ",
182
- image('logo_funding.jpg', height=px(50), width=px(150)),
183
  br(),
184
  "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",
185
  ]
 
4
  from htbuilder import HtmlElement, div, ul, li, br, hr, a, p, img, styles, classes, fonts
5
  from htbuilder.units import percent, px
6
  from htbuilder.funcs import rgba, rgb
7
+ from pathlib import Path
8
 
9
  def clear_text():
10
  st.session_state.text = st.session_state.widget
 
175
 
176
 
177
  def footer():
178
+ logo_path = Path(__file__).with_name("vocali_logo.jpg").relative_to(Path.cwd())
179
+ funding_path = Path(__file__).with_name("logo_funding.png").relative_to(Path.cwd())
180
+
181
  myargs = [
182
  "Made in ",
183
+ image(str(logo_path), width=px(50), height=px(50)),
184
  link("https://vocali.net/", "VÓCALI"),
185
  "with funding ",
186
+ image(str(funding_path), 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
  ]