mennamostafa55555 commited on
Commit
884cb4d
·
1 Parent(s): 238fcf8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -7
app.py CHANGED
@@ -6,10 +6,19 @@ import sahi
6
 
7
 
8
  # Images
9
-
10
- ![image/png](https://cdn-uploads.huggingface.co/production/uploads/64be73e7b9296eef62f1b73c/QiBAeHLkcoi-x-Vwr-SUp.png)
11
- ![image/jpeg](https://cdn-uploads.huggingface.co/production/uploads/64be73e7b9296eef62f1b73c/Yp_L7BvD9L7WRJowqgOlo.jpeg)
12
- ![image/png](https://cdn-uploads.huggingface.co/production/uploads/64be73e7b9296eef62f1b73c/KpdP_-YTLtzS-r5cLst2Y.png)
 
 
 
 
 
 
 
 
 
13
 
14
  annotatorbbox = sv.BoxAnnotator()
15
  annotatormask=sv.MaskAnnotator()
@@ -51,9 +60,9 @@ outputs = gr.Image(type="filepath", label="Output Image")
51
  title = "Ultralytics YOLOv8 Segmentation Demo"
52
  import os
53
  examples = [
54
- ["image.jpeg", 0.6, 0.45],
55
- ["image.png", 0.25, 0.45],
56
- ["image.png", 0.25, 0.45],
57
  ]
58
  demo_app = gr.Interface(examples=examples,
59
  fn=yolov8_inference,
 
6
 
7
 
8
  # Images
9
+ # Images
10
+ sahi.utils.file.download_from_url(
11
+ "https://huggingface.co/spaces/mennamostafa55555/ms/blob/main/download_13.png",
12
+ "tu1.jpg",
13
+ )
14
+ sahi.utils.file.download_from_url(
15
+ "https://huggingface.co/spaces/mennamostafa55555/ms/blob/main/download_14.png",
16
+ "tu2.jpg",
17
+ )
18
+ sahi.utils.file.download_from_url(
19
+ "https://huggingface.co/spaces/mennamostafa55555/ms/blob/main/e7d86208-a7e1-4d2a-963c-af6102430b0c%20(1).jpg",
20
+ "tu3.jpg",
21
+ )
22
 
23
  annotatorbbox = sv.BoxAnnotator()
24
  annotatormask=sv.MaskAnnotator()
 
60
  title = "Ultralytics YOLOv8 Segmentation Demo"
61
  import os
62
  examples = [
63
+ ["tu1.png", 0.6, 0.45],
64
+ ["tu2.png", 0.25, 0.45],
65
+ ["tu3.jpg", 0.25, 0.45],
66
  ]
67
  demo_app = gr.Interface(examples=examples,
68
  fn=yolov8_inference,