Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -108,5 +108,10 @@ if uploaded_file is not None:
|
|
| 108 |
presentation_path = tempfile.NamedTemporaryFile(delete=False, suffix=".pptx").name
|
| 109 |
prs.save(presentation_path)
|
| 110 |
|
| 111 |
-
# Display
|
| 112 |
-
st.download_button(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 108 |
presentation_path = tempfile.NamedTemporaryFile(delete=False, suffix=".pptx").name
|
| 109 |
prs.save(presentation_path)
|
| 110 |
|
| 111 |
+
# Display a download button for the PowerPoint file
|
| 112 |
+
st.download_button(
|
| 113 |
+
label="Download PowerPoint Presentation",
|
| 114 |
+
data=presentation_path,
|
| 115 |
+
key="download_ppt",
|
| 116 |
+
file_name="PDF2SLIDE_Presentation.pptx",
|
| 117 |
+
)
|