AlBaraa63 commited on
Commit
aa1eb2e
Β·
1 Parent(s): 13320e1

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 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

  • SHA256: 8ef794266536f13955257c49d30ee52a2ae907236369482bd12b2a44e4651884
  • Pointer size: 131 Bytes
  • Size of remote file: 195 kB
examples/garbage_6.jpg ADDED

Git LFS Details

  • SHA256: ea5be2ab6a03da6c95c6a4b4bc8684ebbe8d4ef781f812b518fa784be2715a7a
  • Pointer size: 132 Bytes
  • Size of remote file: 3.64 MB
examples/garbage_9.jpg ADDED

Git LFS Details

  • SHA256: c87bfda3485e8c8662322977773408d1b9b929456e1662d3060b4204d4423236
  • Pointer size: 132 Bytes
  • Size of remote file: 3.61 MB
examples/street_trash.jpg ADDED

Git LFS Details

  • SHA256: 201e93442a9134b2d49cc9f2ce6d126f5d37d4e805a7cf3f1b97efc4684e8109
  • Pointer size: 131 Bytes
  • Size of remote file: 261 kB