feat: add interactive Gradio web UI mounted on FastAPI root
mabosaimi
1617c4a
feat: migrate to Hugging Face Model Hub dynamic loading
mabosaimi
5ad41d8
feat: add structured JSON request logging to /predict
mabosaimi
e62e3a5
refactor: install canonical hadhari package v0.3.0 from Git tag
mabosaimi
b057a3c
fix: remove double-preprocessing and update API contract
mabosaimi
27e8a75
- Pass raw text directly to pipeline (FunctionTransformer handles
preprocessing); removes redundant clean_text() call that was
double-preprocessing every request.
- Rename response field 'prediction' to 'class_id' (0=not_spam, 1=spam).
- Make 'label' the primary response field (listed first).
- Bump API version to 0.3.0.
feat: support cross-repo joblib pipeline deserialization in app.py
mabosaimi
29cb8e6
chore: add pyrightconfig.json and refine app.py type hints for basedpyright
mabosaimi
c93d94c
feat: upgrade Space to Python 3.12, pin dependencies, and harden API
mabosaimi
5eebb6c
- Upgrade base image to python:3.12-slim matching main repo
- Pin exact dependency versions in requirements.txt
- Add preprocess_texts to preprocessor.py for Pipeline deserialization support
- Add input validation (max_length 5000) and /health check endpoint in app.py
- Add human-readable 'label' ('spam'|'not_spam') to predict response
setup fastapi route with model preprocessing and prediction