mikaelnurminen/modernbert-large-phishing
0
Phishing Detection Space (ZeroGPU)
This Space is configured for Hugging Face ZeroGPU using the spaces framework pattern (@spaces.GPU).
Workflows
- Email classification: paste email text and/or upload
.eml. - URL classification: analyze a URL in a dedicated classifier flow.
ZeroGPU setup
- In Space Settings, set hardware to ZeroGPU.
- Keep SDK as Gradio.
- The inference path in
app.pyis wrapped with@spaces.GPUfor on-demand GPU execution.
Runtime env vars
MODEL_REPO_IDdefaultmikaelnurminen/modernbert-large-phishingMAX_LENGTHdefault2048EMAIL_THRESHOLDdefault0.57URL_THRESHOLDdefault0.52MIN_EMAIL_CHARSdefault1
Notes
- Full-model inference is the default path (CPU quantized export is not used by default).
- The app uses separate thresholds for email and URL to reduce false positives.
- Very short email greetings (for example
hi) are treated as benign to avoid trivial false positives.
