import gradio as gr import os import requests BREVO_KEY = os.environ["BREVO_API_KEY"] FROM_EMAIL = "epicamp.response@gmail.com" FROM_NAME = "EPIC-AMP" def send_report(to_email, pdf_b64, label, confidence, sequence): is_amp = 'AMP' in label and 'Non' not in label label_color = '#2e7d32' if is_amp else '#c62828' html_content = f"""
Explainable Antimicrobial Peptide Classification Platform
Dear Researcher,
Your peptide sequence has been successfully analyzed using the EPIC-AMP platform. Please find your detailed PDF report attached.
| Metric | Result |
| Classification | {label} |
| Confidence Score | {confidence} |
| Input Sequence | {sequence} |
The attached PDF includes LIME feature attributions, MIC predictions, and global SHAP feature importance.
For questions reach us at epicamp.sup@gmail.com.
Best regards,
The EPIC-AMP Team
Bioinformatics & Computational Biology Unit (BCBU)
Zewail City of Science and Technology · BCBU · Giza, Egypt
📧 epicamp.sup@gmail.com
This is an automated message — please do not reply directly.