Spaces:
Running on Zero
Running on Zero
Commit History
9 days ago
-
Enforce the image size limit in run() Running
_resize_on_upload only runs for images sent from Python, such as examples, because the editor does not fire .input() for browser uploads. Large uploads therefore reached the model at full size, and API clients could send any size as well. Downscale the image and the trimap (with nearest-neighbor, to keep 0/128/255) before inference.cd4fe6c -
Update trimap-editor to 0.1.3
0dd6b2b -
Pass css_paths to launch() instead of Blocks
6899af9 -
Update dependencies
Bump gradio to 6.29.1 (and sdk_version), transformers to 5.18.0 and spaces to 0.51.3. torch stays at 2.9.1. Also move ruff to 0.16.10 in both the dev group and pre-commit, and ignore CPY001, which ruff 0.16 now reports under select = ["ALL"].881e888 -
Update trimap-editor to 0.1.2 for trimap upload
trimap-editor 0.1.2 adds a Load trimap button, so users can load an existing trimap image instead of drawing one. Mention it in the description.04f9be4 -
Validate image paths from the editor value
The TrimapEditor value is a JSON string built in the browser, so it skips the path checks Gradio runs for standard components. An API client could put any server path in "image" or "trimap" and make the app open it. Only accept files inside Gradio's upload folder. Also switch the internal events to api_visibility="private".234d36c
-
Update
1b45290
-
Update .pre-commit-config.yaml
666054e -
Remove .vscode
1e42f67
-
Update
e8dd4c2
-
gradio==5.39.0
7eeaacc
-
Update
8101e9f -
Update
6e55bf4 -
Update
1b591cd -
Update
57ef34f
-
Fix type annotation
5bdb8db
-
gradio==5.24.0
f33be2d
-
Update
913b6ce
-
Update
3e64454
-
Update
955e34d -
Update
1a8cb04 -
Update
9aeb2df
-
Apply pre-commit
d0028f2 -
Minor nits (#1)
- Minor nits (4e7ef50d428cffacbd36572f7bc3df4694c93ab8) Co-authored-by: Merve Noyan <merve@users.noreply.huggingface.co>1d5bddb
-
Update
9e392e3 -
Update
e2a114a
-
Update
11433a5
-
Support background replacement
85f6a01 -
Add files
d578b5a -
initial commit
b2ffc9c