Update main.py
Browse files
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 |
|