yannESGI commited on
Commit
58a1939
·
1 Parent(s): 4b8aefe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -91,7 +91,7 @@ if uploaded_file is not None:
91
  p = tf.add_paragraph()
92
  p.text = summary[0]['summary_text']
93
 
94
- st.text(f"Paragraphe {i}: {summary[0]['summary_text']}") # Affiche le résumé du paragraphe
95
 
96
  image_bytes = query({
97
  "inputs": 'A picture about :' + summary[0]['summary_text'] # Utilisez le texte du résumé
@@ -100,11 +100,11 @@ if uploaded_file is not None:
100
  left = top = prs.slide_width * 0.1
101
  pic = slide.shapes.add_picture(io.BytesIO(image_bytes), left, top, width=prs.slide_width * 0.8)
102
 
103
- st.image(image)
104
 
105
  i = i + 1
106
 
107
 
108
  prs.save("output.pptx")
109
 
110
- st.download_button("Télécharger la présentation", "output.pptx")
 
91
  p = tf.add_paragraph()
92
  p.text = summary[0]['summary_text']
93
 
94
+ #st.text(f"Paragraphe {i}: {summary[0]['summary_text']}") # Affiche le résumé du paragraphe
95
 
96
  image_bytes = query({
97
  "inputs": 'A picture about :' + summary[0]['summary_text'] # Utilisez le texte du résumé
 
100
  left = top = prs.slide_width * 0.1
101
  pic = slide.shapes.add_picture(io.BytesIO(image_bytes), left, top, width=prs.slide_width * 0.8)
102
 
103
+ # st.image(image)
104
 
105
  i = i + 1
106
 
107
 
108
  prs.save("output.pptx")
109
 
110
+ st.download_button("Télécharger la présentation", output.pptx, key="download_pptx")