Pierre Chapuis
commited on
fix clear in bbox tab
Browse filessee https://github.com/edgarGracia/gradio_image_annotator/pull/13
- gradio_image_annotation-0.2.3-py3-none-any.whl +0 -0
- pyproject.toml +1 -1
- requirements.lock +7 -7
- requirements.txt +1 -1
- src/app.py +2 -2
gradio_image_annotation-0.2.3-py3-none-any.whl
ADDED
Binary file (85.3 kB). View file
|
|
pyproject.toml
CHANGED
@@ -8,7 +8,7 @@ authors = [
|
|
8 |
dependencies = [
|
9 |
"gradio>=4.41.0",
|
10 |
"environs>=11.0.0",
|
11 |
-
"gradio-image-annotation
|
12 |
"httpx>=0.27.0",
|
13 |
"pillow>=10.4.0",
|
14 |
"gradio-imageslider>=0.0.20",
|
|
|
8 |
dependencies = [
|
9 |
"gradio>=4.41.0",
|
10 |
"environs>=11.0.0",
|
11 |
+
"gradio-image-annotation @ https://huggingface.co/spaces/finegrain/finegrain-object-eraser/resolve/main/gradio_image_annotation-0.2.3-py3-none-any.whl",
|
12 |
"httpx>=0.27.0",
|
13 |
"pillow>=10.4.0",
|
14 |
"gradio-imageslider>=0.0.20",
|
requirements.lock
CHANGED
@@ -18,7 +18,7 @@ anyio==4.4.0
|
|
18 |
# via gradio
|
19 |
# via httpx
|
20 |
# via starlette
|
21 |
-
certifi==2024.
|
22 |
# via httpcore
|
23 |
# via httpx
|
24 |
# via requests
|
@@ -27,7 +27,7 @@ charset-normalizer==3.3.2
|
|
27 |
click==8.1.7
|
28 |
# via typer
|
29 |
# via uvicorn
|
30 |
-
contourpy==1.
|
31 |
# via matplotlib
|
32 |
cycler==0.12.1
|
33 |
# via matplotlib
|
@@ -50,7 +50,7 @@ gradio==4.42.0
|
|
50 |
# via gradio-imageslider
|
51 |
gradio-client==1.3.0
|
52 |
# via gradio
|
53 |
-
gradio-image-annotation
|
54 |
# via eraser
|
55 |
gradio-imageslider==0.0.20
|
56 |
# via eraser
|
@@ -59,7 +59,7 @@ h11==0.14.0
|
|
59 |
# via uvicorn
|
60 |
httpcore==1.0.5
|
61 |
# via httpx
|
62 |
-
httpx==0.27.
|
63 |
# via eraser
|
64 |
# via gradio
|
65 |
# via gradio-client
|
@@ -135,9 +135,9 @@ pyyaml==6.0.2
|
|
135 |
# via huggingface-hub
|
136 |
requests==2.32.3
|
137 |
# via huggingface-hub
|
138 |
-
rich==13.
|
139 |
# via typer
|
140 |
-
ruff==0.6.
|
141 |
# via gradio
|
142 |
semantic-version==2.10.0
|
143 |
# via gradio
|
@@ -148,7 +148,7 @@ six==1.16.0
|
|
148 |
sniffio==1.3.1
|
149 |
# via anyio
|
150 |
# via httpx
|
151 |
-
starlette==0.38.
|
152 |
# via fastapi
|
153 |
tomlkit==0.12.0
|
154 |
# via gradio
|
|
|
18 |
# via gradio
|
19 |
# via httpx
|
20 |
# via starlette
|
21 |
+
certifi==2024.8.30
|
22 |
# via httpcore
|
23 |
# via httpx
|
24 |
# via requests
|
|
|
27 |
click==8.1.7
|
28 |
# via typer
|
29 |
# via uvicorn
|
30 |
+
contourpy==1.3.0
|
31 |
# via matplotlib
|
32 |
cycler==0.12.1
|
33 |
# via matplotlib
|
|
|
50 |
# via gradio-imageslider
|
51 |
gradio-client==1.3.0
|
52 |
# via gradio
|
53 |
+
gradio-image-annotation @ https://huggingface.co/spaces/finegrain/finegrain-object-eraser/resolve/main/gradio_image_annotation-0.2.3-py3-none-any.whl
|
54 |
# via eraser
|
55 |
gradio-imageslider==0.0.20
|
56 |
# via eraser
|
|
|
59 |
# via uvicorn
|
60 |
httpcore==1.0.5
|
61 |
# via httpx
|
62 |
+
httpx==0.27.2
|
63 |
# via eraser
|
64 |
# via gradio
|
65 |
# via gradio-client
|
|
|
135 |
# via huggingface-hub
|
136 |
requests==2.32.3
|
137 |
# via huggingface-hub
|
138 |
+
rich==13.8.0
|
139 |
# via typer
|
140 |
+
ruff==0.6.3
|
141 |
# via gradio
|
142 |
semantic-version==2.10.0
|
143 |
# via gradio
|
|
|
148 |
sniffio==1.3.1
|
149 |
# via anyio
|
150 |
# via httpx
|
151 |
+
starlette==0.38.4
|
152 |
# via fastapi
|
153 |
tomlkit==0.12.0
|
154 |
# via gradio
|
requirements.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
gradio_image_annotation
|
2 |
gradio_imageslider>=0.0.20
|
3 |
environs>=11.0.0
|
4 |
httpx>=0.27.0
|
|
|
1 |
+
https://huggingface.co/spaces/finegrain/finegrain-object-eraser/resolve/main/gradio_image_annotation-0.2.3-py3-none-any.whl
|
2 |
gradio_imageslider>=0.0.20
|
3 |
environs>=11.0.0
|
4 |
httpx>=0.27.0
|
src/app.py
CHANGED
@@ -66,8 +66,8 @@ def process_bbox(
|
|
66 |
return (img, output_image)
|
67 |
|
68 |
|
69 |
-
def on_change_bbox(prompts: dict[str, Any]):
|
70 |
-
return gr.update(interactive=len(prompts["boxes"]) > 0)
|
71 |
|
72 |
|
73 |
def process_prompt(
|
|
|
66 |
return (img, output_image)
|
67 |
|
68 |
|
69 |
+
def on_change_bbox(prompts: dict[str, Any] | None):
|
70 |
+
return gr.update(interactive=prompts is not None and len(prompts["boxes"]) > 0)
|
71 |
|
72 |
|
73 |
def process_prompt(
|