Spaces:
Sleeping
Sleeping
Add example images for UI testing (with LFS)
Browse files- Added 3 sample images (beach, park, street scenes)
- Integrated Gradio Examples component for quick testing
- Users can now try the app without uploading their own images
- Improves onboarding and demo experience
- Images tracked with Git LFS
- .gitattributes +2 -0
- app.py +11 -0
- examples/garbage_5.jpg +3 -0
- examples/garbage_6.jpg +3 -0
- examples/garbage_9.jpg +3 -0
- examples/street_trash.jpg +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
app.py
CHANGED
|
@@ -709,6 +709,17 @@ def create_interface() -> gr.Blocks:
|
|
| 709 |
height=400
|
| 710 |
)
|
| 711 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 712 |
notes_input = gr.Textbox(
|
| 713 |
label="π Additional Notes (optional)",
|
| 714 |
placeholder="e.g., Near the playground, behind the dumpster, next to parking lot...",
|
|
|
|
| 709 |
height=400
|
| 710 |
)
|
| 711 |
|
| 712 |
+
# Example images for quick testing
|
| 713 |
+
gr.Examples(
|
| 714 |
+
examples=[
|
| 715 |
+
["examples/beach_litter.jpg", "Ocean Beach", "Found near the boardwalk"],
|
| 716 |
+
["examples/park_trash.jpg", "Central Park", "Next to playground area"],
|
| 717 |
+
["examples/street_waste.jpg", "Main Street", "Corner of 5th Avenue"],
|
| 718 |
+
],
|
| 719 |
+
inputs=[image_input, location_input, notes_input],
|
| 720 |
+
label="πΈ Try these examples to test the app"
|
| 721 |
+
)
|
| 722 |
+
|
| 723 |
notes_input = gr.Textbox(
|
| 724 |
label="π Additional Notes (optional)",
|
| 725 |
placeholder="e.g., Near the playground, behind the dumpster, next to parking lot...",
|
examples/garbage_5.jpg
ADDED
|
Git LFS Details
|
examples/garbage_6.jpg
ADDED
|
Git LFS Details
|
examples/garbage_9.jpg
ADDED
|
Git LFS Details
|
examples/street_trash.jpg
ADDED
|
Git LFS Details
|