Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -105,14 +105,11 @@ if uploaded_file is not None:
|
|
| 105 |
# Create a slide
|
| 106 |
slide = prs.slides.add_slide(prs.slide_layouts[5])
|
| 107 |
|
| 108 |
-
#
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
# Add the image to the slide
|
| 115 |
-
pic = slide.shapes.add_picture(temp_img_path, img_left, img_top, img_width, img_height)
|
| 116 |
|
| 117 |
# Add the paragraph to the slide at the top
|
| 118 |
left = Inches(1)
|
|
|
|
| 105 |
# Create a slide
|
| 106 |
slide = prs.slides.add_slide(prs.slide_layouts[5])
|
| 107 |
|
| 108 |
+
# Add the image to the slide at the bottom (resized to 500x500 pixels)
|
| 109 |
+
left = Inches(1)
|
| 110 |
+
top = Inches(3) # Adjust the top position for better alignment
|
| 111 |
+
width = height = Inches(3)
|
| 112 |
+
pic = slide.shapes.add_picture(temp_img_path, left, top, width, height)
|
|
|
|
|
|
|
|
|
|
| 113 |
|
| 114 |
# Add the paragraph to the slide at the top
|
| 115 |
left = Inches(1)
|