ProfessorLeVesseur commited on
Commit
89f0ac5
·
verified ·
1 Parent(s): 6140c9f

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +11 -0
main.py CHANGED
@@ -153,6 +153,17 @@ def main():
153
  # Download AI output
154
  ai_analysis.download_llm_output(recommendations, "llm_output.txt")
155
 
 
 
 
 
 
 
 
 
 
 
 
156
  except Exception as e:
157
  st.error(f"Error processing the file: {str(e)}")
158
 
 
153
  # Download AI output
154
  ai_analysis.download_llm_output(recommendations, "llm_output.txt")
155
 
156
+ # Add the combined download button
157
+ st.divider()
158
+ st.subheader("Download Combined Report")
159
+ combined_pdf = create_combined_pdf(intervention_fig, student_metrics_fig, recommendations)
160
+ st.download_button(
161
+ label="Download Combined Report (PDF)",
162
+ data=combined_pdf,
163
+ file_name="combined_report.pdf",
164
+ mime="application/pdf"
165
+ )
166
+
167
  except Exception as e:
168
  st.error(f"Error processing the file: {str(e)}")
169