newoz commited on
Commit
c3a449c
·
1 Parent(s): b28a803

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
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 the link to download the PowerPoint file
112
- st.download_button(f"Download the PowerPoint presentation: [PowerPoint File]({presentation_path})")
 
 
 
 
 
 
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
+ )