Spaces:
Sleeping
Sleeping
onuralpszr
commited on
Commit
β’
c90b78a
1
Parent(s):
a3a67e0
feat: π tqdm and tqdm tracker added for track tqdm(s)
Browse filesSigned-off-by: Onuralp SEZER <[email protected]>
- app.py +8 -7
- requirements.txt +1 -0
app.py
CHANGED
@@ -83,6 +83,7 @@ def annotator(
|
|
83 |
colorhalo,
|
84 |
colortri,
|
85 |
colordot,
|
|
|
86 |
):
|
87 |
"""
|
88 |
Function that changes the color of annotators
|
@@ -222,7 +223,7 @@ with gr.Blocks(theme=purple_theme) as app:
|
|
222 |
label="Select Annotators:",
|
223 |
)
|
224 |
|
225 |
-
gr.Markdown("
|
226 |
with gr.Row(variant="compact"):
|
227 |
with gr.Column():
|
228 |
colorbb = gr.ColorPicker(value="#A351FB", label="BoundingBox")
|
@@ -265,14 +266,14 @@ with gr.Blocks(theme=purple_theme) as app:
|
|
265 |
outputs=image_output,
|
266 |
)
|
267 |
|
268 |
-
gr.Markdown("## Image Examples")
|
269 |
gr.Examples(
|
270 |
examples=[
|
271 |
-
os.path.join(os.path.abspath(""), "city.jpg"),
|
272 |
-
os.path.join(os.path.abspath(""), "household.jpg"),
|
273 |
-
os.path.join(os.path.abspath(""), "industry.jpg"),
|
274 |
-
os.path.join(os.path.abspath(""), "retail.jpg"),
|
275 |
-
os.path.join(os.path.abspath(""), "aerodefence.jpg"),
|
276 |
],
|
277 |
inputs=image_input,
|
278 |
outputs=image_output,
|
|
|
83 |
colorhalo,
|
84 |
colortri,
|
85 |
colordot,
|
86 |
+
progress=gr.Progress(track_tqdm=True),
|
87 |
):
|
88 |
"""
|
89 |
Function that changes the color of annotators
|
|
|
223 |
label="Select Annotators:",
|
224 |
)
|
225 |
|
226 |
+
gr.Markdown("## Color Picker π¨")
|
227 |
with gr.Row(variant="compact"):
|
228 |
with gr.Column():
|
229 |
colorbb = gr.ColorPicker(value="#A351FB", label="BoundingBox")
|
|
|
266 |
outputs=image_output,
|
267 |
)
|
268 |
|
269 |
+
gr.Markdown("## Image Examples πΌοΈ")
|
270 |
gr.Examples(
|
271 |
examples=[
|
272 |
+
os.path.join(os.path.abspath(""), "./assets/city.jpg"),
|
273 |
+
os.path.join(os.path.abspath(""), "./assets/household.jpg"),
|
274 |
+
os.path.join(os.path.abspath(""), "./assets/industry.jpg"),
|
275 |
+
os.path.join(os.path.abspath(""), "./assets/retail.jpg"),
|
276 |
+
os.path.join(os.path.abspath(""), "./assets/aerodefence.jpg"),
|
277 |
],
|
278 |
inputs=image_input,
|
279 |
outputs=image_output,
|
requirements.txt
CHANGED
@@ -3,3 +3,4 @@ gradio
|
|
3 |
ultralytics
|
4 |
supervision
|
5 |
matplotlib
|
|
|
|
3 |
ultralytics
|
4 |
supervision
|
5 |
matplotlib
|
6 |
+
tqdm
|