owaiskha9654 commited on
Commit
e26c56b
1 Parent(s): 19b6a2d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -6,8 +6,8 @@ from ultralyticsplus import YOLO
6
 
7
  # Images
8
  torch.hub.download_url_to_file('https://raw.githubusercontent.com/kadirnar/dethub/main/data/images/highway.jpg', 'highway.jpg')
9
- torch.hub.download_url_to_file('https://user-images.githubusercontent.com/34196005/142742872-1fefcc4d-d7e6-4c43-bbb7-6b5982f7e4ba.jpg', 'highway1.jpg')
10
- torch.hub.download_url_to_file('https://raw.githubusercontent.com/obss/sahi/main/tests/data/small-vehicles1.jpeg', 'small-vehicles1.jpeg')
11
 
12
  def yolov8_inference(
13
  image: gr.inputs.Image = None,
@@ -71,7 +71,7 @@ inputs = [
71
  outputs = gr.outputs.Image(type="filepath", label="Output Image")
72
  title = "Ultralytics YOLOv8: State-of-the-Art YOLO Models"
73
 
74
- examples = [['highway.jpg', 'kadirnar/yolov8m-v8.0', 640, 0.25, 0.45], ['highway1.jpg', 'kadirnar/yolov8l-v8.0', 640, 0.25, 0.45], ['small-vehicles1.jpeg', 'kadirnar/yolov8x-v8.0', 1280, 0.25, 0.45]]
75
  demo_app = gr.Interface(
76
  fn=yolov8_inference,
77
  inputs=inputs,
 
6
 
7
  # Images
8
  torch.hub.download_url_to_file('https://raw.githubusercontent.com/kadirnar/dethub/main/data/images/highway.jpg', 'highway.jpg')
9
+ torch.hub.download_url_to_file('https://raw.githubusercontent.com/Owaiskhan9654/tests/main/test_sample_images/favicon.jpg', 'favicon.jpg')
10
+ torch.hub.download_url_to_file('https://raw.githubusercontent.com/Owaiskhan9654/tests/main/test_sample_images/Taj_Mahal.jpg', 'Taj_Mahal.jpg')
11
 
12
  def yolov8_inference(
13
  image: gr.inputs.Image = None,
 
71
  outputs = gr.outputs.Image(type="filepath", label="Output Image")
72
  title = "Ultralytics YOLOv8: State-of-the-Art YOLO Models"
73
 
74
+ examples = [['highway.jpg', 'kadirnar/yolov8m-v8.0', 640, 0.25, 0.45], ['Taj_Mahal.jpg', 'kadirnar/yolov8l-v8.0', 640, 0.25, 0.45], ['favicon.jpg', 'kadirnar/yolov8x-v8.0', 1280, 0.25, 0.45]]
75
  demo_app = gr.Interface(
76
  fn=yolov8_inference,
77
  inputs=inputs,