Spaces:
Sleeping
Sleeping
Commit ·
d2b2af9
1
Parent(s): 329e646
Put each plot on its own page in methodology PDF
Browse filesCo-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
491 unmodified lines49249349449549649649749849949749849950013 unmodified lines514515516519520521517518519520521522491 unmodified lines from reportlab.platypus import Image import io
# Distribution chart (new page) story.append(PageBreak()) story.append(Paragraph("Visualizations", title_style))
# Distribution chart story.append(Paragraph("Category Distribution", heading_style)) story.append(Paragraph("Category Distribution", title_style)) try: fig1 = create_distribution_chart(result_df, categories, classify_mode, models_list) img_buffer1 = io.BytesIO()13 unmodified lines except Exception as e: story.append(Paragraph(f"Could not generate distribution chart: {str(e)}", normal_style))
# Classification matrix story.append(Spacer(1, 20)) story.append(Paragraph("Classification Matrix", heading_style)) # Classification matrix (new page) story.append(PageBreak()) story.append(Paragraph("Classification Matrix", title_style)) try: fig2 = create_classification_heatmap(result_df, categories, classify_mode, models_list) img_buffer2 = io.BytesIO()app.py+5-7