Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -118,10 +118,10 @@ if uploaded_file is not None:
|
|
| 118 |
p = tf.add_paragraph()
|
| 119 |
p.text = summary[0]['summary_text']
|
| 120 |
|
| 121 |
-
p.space_after = Pt(
|
| 122 |
-
while p.space_after
|
| 123 |
-
|
| 124 |
-
|
| 125 |
|
| 126 |
p.space_before = Pt(12) # Espace avant le paragraphe (12 points)
|
| 127 |
p.space_after = Pt(12) # Espace après le paragraphe (12 points)
|
|
|
|
| 118 |
p = tf.add_paragraph()
|
| 119 |
p.text = summary[0]['summary_text']
|
| 120 |
|
| 121 |
+
p.space_after = Pt(12) # Initialize space_after to 12 points
|
| 122 |
+
while p.space_after > Pt(0):
|
| 123 |
+
p.font.size -= Pt(1) # Reduce the font size by 1 point
|
| 124 |
+
p.space_after = Pt(12) # Set space_after to 12 points again
|
| 125 |
|
| 126 |
p.space_before = Pt(12) # Espace avant le paragraphe (12 points)
|
| 127 |
p.space_after = Pt(12) # Espace après le paragraphe (12 points)
|