cecilemacaire commited on
Commit
d3ad347
1 Parent(s): 550ce4a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -70,7 +70,7 @@ def generate_html(ids):
70
  img_url = f"https://static.arasaac.org/pictograms/{picto_id}/{picto_id}_500.png"
71
  html_content += f'''
72
  <figure>
73
- <img src="{img_url}" alt="{lemma}" width="200" height="200"/>
74
  <figcaption>{lemma}</figcaption>
75
  </figure>
76
  '''
@@ -159,7 +159,7 @@ with st.spinner("Affichage des pictogrammes..."):
159
 
160
  if st.session_state['pictogram_ids'] is not None:
161
  html = generate_html(st.session_state['pictogram_ids'])
162
- st.components.v1.html(html, height=500, scrolling=True)
163
 
164
  # Container to hold the download button
165
  pdf_path = generate_pdf(st.session_state['pictogram_ids'])
 
70
  img_url = f"https://static.arasaac.org/pictograms/{picto_id}/{picto_id}_500.png"
71
  html_content += f'''
72
  <figure>
73
+ <img src="{img_url}" alt="{lemma}" width="100" height="100"/>
74
  <figcaption>{lemma}</figcaption>
75
  </figure>
76
  '''
 
159
 
160
  if st.session_state['pictogram_ids'] is not None:
161
  html = generate_html(st.session_state['pictogram_ids'])
162
+ st.components.v1.html(html, height=150, scrolling=True)
163
 
164
  # Container to hold the download button
165
  pdf_path = generate_pdf(st.session_state['pictogram_ids'])