How fernandaatim/projeto_magnifyreviewer works
Magnify is a Flask web application for reviewing uploaded business emails. The main workflow sends a .txt upload through the Flask route to email parsing and OpenAI-based evaluation, then saves scored results as CSV for the browser table and chart; the page also supports PDF export and a contact form. The graph follows relationships shown in excerpts and the source index; frontend wiring to the template and chart/PDF libraries is not directly evidenced.
Main entry points: app.py Flask routes · main.py Email processing · script_page.js Upload and table UI · uploads Results CSV
Components 12
Web interface
- Flask routes
app.py - Contact form
forms.py - Upload and table UI
static/scripts/script_page.js - Loading feedback
static/scripts/script_loading.js - Mail service
Email review
- Email processing
main.py - OpenAI API
- Uploaded email file
uploads
Results and export
- Results CSV
uploads - Statistics chart
static/scripts/script_chart.js - PDF export
static/scripts/script_pdf.js
Other components
- Reviewer
Connections 13
- Reviewer → Flask routes: uploads emails
- Flask routes → Contact form: validates with
app.py - Flask routes → Email processing: processes upload
app.py - Flask routes → Uploaded email file: saves file
app.py - Email processing → OpenAI API: evaluates with
main.py - Flask routes → Email processing: saves results via
app.py - Email processing → Results CSV: writes CSV
main.py - Upload and table UI → Flask routes: requests results
static/scripts/script_page.js - Flask routes → Results CSV: reads CSV
app.py - Upload and table UI → Statistics chart: renders statistics
- Upload and table UI → PDF export: exports table
- Loading feedback → Flask routes: submits upload
static/scripts/script_loading.js - Flask routes → Mail service: sends contact message
app.py