Downloads · 30 days
0
taiwu2022/safpi-drawing-demo
safpi-drawing-demo is a machine learning model from taiwu2022. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as cc-by-4.0.
Interactive demo of the pipeline from "Understanding the Inner Self" (Wu et al., 2026). Upload a photo of a child's drawing and see every interpretable stage — page crop, body-part detection, facial-expression classif…
Downloads · 30 days
0
Access
Public
Updated Jul 1, 2026
Repo size
415 KB
Likes
0
Public
Click a slice to open those files.
.py453 KB · 41%
From the Hugging Face model README
Interactive demo of the pipeline from "Understanding the Inner Self" (Wu et al., 2026). Upload a photo of a child's drawing and see every interpretable stage — page crop, body-part detection, facial-expression classification, colour measurement — plus the final structured feature table.
taiwu2022/safpi-drawing-pipeline (safpi_kaggle_combined_v1)| File | Purpose |
|---|---|
app.py | Gradio app; wraps run_pipeline on a single uploaded image. |
requirements.txt | CPU torch + the pipeline's third-party dependencies. |
examples/ | A few ethics-cleared sample drawings for one-click trials. |
drawing_classification/ | Vendored copy of the package (gitignored). The GitHub repo is private, so the Space cannot pip install it from git — it is shipped alongside app.py instead. Regenerate before each deploy. |
PYTHONPATH=src python demo/app.py # uses the package from src/
# 1. Vendor the package next to app.py (gitignored; refresh so it is up to date)
cp -r src/drawing_classification demo/drawing_classification
# 2. Create the Space and upload everything in demo/ (app.py, requirements.txt,
# examples/, the vendored package). Use a working proxy node if behind the GFW.
hf repos create safpi-drawing-demo --repo-type space --space-sdk gradio
caffeinate -i hf upload safpi-drawing-demo demo . --repo-type space