Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,6 +44,9 @@ def generate_html(ids):
|
|
| 44 |
figcaption {
|
| 45 |
margin-top: 5px;
|
| 46 |
}
|
|
|
|
|
|
|
|
|
|
| 47 |
'''
|
| 48 |
html_content += '</style></head><body>'
|
| 49 |
for picto_id, lemma in ids:
|
|
@@ -51,7 +54,7 @@ def generate_html(ids):
|
|
| 51 |
img_url = f"https://static.arasaac.org/pictograms/{picto_id}/{picto_id}_500.png"
|
| 52 |
html_content += f'''
|
| 53 |
<figure>
|
| 54 |
-
<img src="{img_url}" alt="{lemma}" width="200" height="200"
|
| 55 |
<figcaption>{lemma}</figcaption>
|
| 56 |
</figure>
|
| 57 |
'''
|
|
|
|
| 44 |
figcaption {
|
| 45 |
margin-top: 5px;
|
| 46 |
}
|
| 47 |
+
img {
|
| 48 |
+
background-color: white;
|
| 49 |
+
}
|
| 50 |
'''
|
| 51 |
html_content += '</style></head><body>'
|
| 52 |
for picto_id, lemma in ids:
|
|
|
|
| 54 |
img_url = f"https://static.arasaac.org/pictograms/{picto_id}/{picto_id}_500.png"
|
| 55 |
html_content += f'''
|
| 56 |
<figure>
|
| 57 |
+
<img src="{img_url}" alt="{lemma}" width="200" height="200"/>
|
| 58 |
<figcaption>{lemma}</figcaption>
|
| 59 |
</figure>
|
| 60 |
'''
|