cecilemacaire commited on
Commit
3d448f0
·
verified ·
1 Parent(s): bbbe59d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -123,7 +123,7 @@ with st.spinner("Affichage des pictogrammes..."):
123
  html = generate_html(pictogram_ids)
124
  st.components.v1.html(html, height=500, scrolling=True)
125
 
126
- # Container to hold the download button
127
- pdf_path = generate_pdf(pictogram_ids)
128
- with open(pdf_path, "rb") as pdf_file:
129
- st.download_button(label="Télécharger la traduction en PDF", data=pdf_file, file_name="pictograms.pdf", mime="application/pdf")
 
123
  html = generate_html(pictogram_ids)
124
  st.components.v1.html(html, height=500, scrolling=True)
125
 
126
+ # Container to hold the download button
127
+ pdf_path = generate_pdf(pictogram_ids)
128
+ with open(pdf_path, "rb") as pdf_file:
129
+ st.download_button(label="Télécharger la traduction en PDF", data=pdf_file, file_name="pictograms.pdf", mime="application/pdf")