Spaces:
Sleeping
Sleeping
Commit History
-
Fix build for Gradio 6 and update app for current libraries
- requirements.txt: move to transformers 5.x (Gradio 6 needs huggingface-hub>=1.16, every transformers 4.x pins <1.0), pin tested versions and use CPU-only torch wheels - README: pin python_version 3.13 and link the ViT model - app.py: port from the removed gr.inputs/gr.outputs API to gr.Blocks; load the 2022 ViT with eager attention so attention rollout works; show ImageNet labels for the ResNet (indexing labels.json raised IndexError); fix heatmap min-max overflow and BGR/RGB swap; use the ViT's own 0.5/0.5 normalization; accept grayscale and RGBA images - plot.py: titles from the new label dicts - remove labels.json (labels now come from the model config) and examples/.DS_Store Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>f5f29b5
-
Add application file
a7da823