Spaces:
Sleeping
Sleeping
Update app.py
Browse files59 unmodified lines60616263646566676869707172737459 unmodified lines# Export optionscol1, col2 = st.columns(2)with col1:if st.button("Export to PDF"):pdf_file = export_to_pdf(study_plan)st.success(f"Study plan exported as {pdf_file}")with open(pdf_file, "rb") as file:st.download_button("Download PDF", file, file_name="study_plan.pdf")with col2:if st.button("Export to Excel"):excel_file = export_to_excel(study_plan)st.success(f"Study plan exported as {excel_file}")with open(excel_file, "rb") as file:st.download_button("Download Excel", file, file_name="study_plan.xlsx")59 unmodified lines606162636465666768697071727374757659 unmodified lines# Export optionscol1, col2 = st.columns(2)with col1:if st.button("Export to PDF"):pdf_file = export_to_pdf(study_plan)st.success(f"Study plan exported as {pdf_file}")with open(pdf_file, "rb") as file:st.download_button("Download PDF", file, file_name="study_plan.pdf", key="pdf_download")with col2:if st.button("Export to Excel"):excel_file = export_to_excel(study_plan)st.success(f"Study plan exported as {excel_file}")with open(excel_file, "rb") as file:st.download_button("Download Excel", file, file_name="study_plan.xlsx", key="excel_download")
app.py+4-2