Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -135,6 +135,10 @@ if uploaded_file is not None:
|
|
| 135 |
p = tf.add_paragraph()
|
| 136 |
p.text = summary[0]['summary_text']
|
| 137 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 138 |
p.space_before = Pt(12) # Espace avant le paragraphe (12 points)
|
| 139 |
p.space_after = Pt(12) # Espace après le paragraphe (12 points)
|
| 140 |
p.alignment = PP_ALIGN.CENTER # Centrez le texte horizontalement
|
|
|
|
| 135 |
p = tf.add_paragraph()
|
| 136 |
p.text = summary[0]['summary_text']
|
| 137 |
|
| 138 |
+
# Ajustez la taille de police pour le texte afin qu'il rentre dans le cadre de texte
|
| 139 |
+
while p.space_after > Pt(0):
|
| 140 |
+
p.font.size -= Pt(1) # Réduisez la taille de police de 1 point
|
| 141 |
+
|
| 142 |
p.space_before = Pt(12) # Espace avant le paragraphe (12 points)
|
| 143 |
p.space_after = Pt(12) # Espace après le paragraphe (12 points)
|
| 144 |
p.alignment = PP_ALIGN.CENTER # Centrez le texte horizontalement
|