Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -123,7 +123,8 @@ if sentence:
|
|
| 123 |
html = generate_html(pictogram_ids)
|
| 124 |
st.components.v1.html(html, height=500, scrolling=True)
|
| 125 |
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
|
|
|
|
|
| 123 |
html = generate_html(pictogram_ids)
|
| 124 |
st.components.v1.html(html, height=500, scrolling=True)
|
| 125 |
|
| 126 |
+
if pictogram_ids:
|
| 127 |
+
# Container to hold the download button
|
| 128 |
+
pdf_path = generate_pdf(pictogram_ids)
|
| 129 |
+
with open(pdf_path, "rb") as pdf_file:
|
| 130 |
+
st.download_button(label="Télécharger la traduction en PDF", data=pdf_file, file_name="pictograms.pdf", mime="application/pdf")
|