Update app.py
Browse files
app.py
CHANGED
@@ -117,11 +117,6 @@ def get_result_text_ca (list_entity, text):
|
|
117 |
return " ".join(result_words)
|
118 |
|
119 |
|
120 |
-
def image(src_as_string, **style):
|
121 |
-
src = f"src='data:image/png;base64,{src_as_string}'"
|
122 |
-
return img(src=src_as_string, class='img-fluid', style=styles(**style))
|
123 |
-
|
124 |
-
|
125 |
def link(link, text, **style):
|
126 |
return a(_href=link, _target="_blank", style=styles(**style))(text)
|
127 |
|
@@ -188,10 +183,16 @@ def footer():
|
|
188 |
|
189 |
myargs = [
|
190 |
"Made in ",
|
191 |
-
image(img_to_bytes(str(logo_path) + "/vocali_logo.jpg"), width=px(50), height=px(50)),
|
|
|
|
|
|
|
192 |
link("https://vocali.net/", "VÓCALI"),
|
193 |
" with funding ",
|
194 |
-
image(img_to_bytes(str(funding_path) + "/logo_funding.png"), height=px(50), width=px(200)),
|
|
|
|
|
|
|
195 |
br(),
|
196 |
"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",
|
197 |
]
|
|
|
117 |
return " ".join(result_words)
|
118 |
|
119 |
|
|
|
|
|
|
|
|
|
|
|
120 |
def link(link, text, **style):
|
121 |
return a(_href=link, _target="_blank", style=styles(**style))(text)
|
122 |
|
|
|
183 |
|
184 |
myargs = [
|
185 |
"Made in ",
|
186 |
+
# image(img_to_bytes(str(logo_path) + "/vocali_logo.jpg"), width=px(50), height=px(50)),
|
187 |
+
"<img src='data:image/jpg;base64,{}' class='img-fluid' width='50' height='50'>".format(
|
188 |
+
img_to_bytes(logo_path)
|
189 |
+
)
|
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 |
+
"<img src='data:image/png;base64,{}' class='img-fluid' width='250' height='50'>".format(
|
194 |
+
img_to_bytes(funding_path)
|
195 |
+
)
|
196 |
br(),
|
197 |
"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",
|
198 |
]
|