Spaces:
Runtime error
Runtime error
Commit History
-
Auto-predict on canvas draw instead of button click
Removes predict button - prediction now updates automatically when the canvas has content. Fixes state timing issue where button click would show previous drawing's prediction. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>8604f36 -
Fix canvas clearing and digit preprocessing
- Use session state counter to properly reset canvas - Add bounding box cropping to center the digit - Make image square before resizing for better aspect ratio - Reduce stroke width slightly for better recognition Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>92007c5 -
Add handwritten digit recognizer with MLP classifier
- Drawable canvas for user input (streamlit-drawable-canvas) - MLP model trained on sklearn digits dataset (97.78% accuracy) - Real-time prediction with confidence visualization - Plotly bar chart showing probabilities for all 10 digits Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>cd8e368
-
Duplicate from streamlit/streamlit-template-space
Co-authored-by: Franck Abgrall <FranckAbgrall@users.noreply.huggingface.co>dee4be0