mussie1212 commited on
Commit
3696bcc
·
verified ·
1 Parent(s): b6f7cc5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -6,7 +6,7 @@ from ultralytics import ASSETS, YOLO
6
  from PIL import Image
7
  import gradio as gr
8
 
9
- model_path = '/home/mussie/Videos/mussie_doc/Model_testing_for_uniliver/new_data_improved_object_detector.pt'
10
 
11
  model = YOLO(model_path)
12
 
@@ -43,10 +43,11 @@ iface = gr.Interface(
43
  outputs=gr.Image(type="pil", label="Result"),
44
  title="Ultralytics Gradio",
45
  description="Upload images for inference. The Ultralytics YOLOv8n model is used by default.",
46
- # examples=[
47
- # [ASSETS / "bus.jpg", 0.25, 0.45],
48
- # [ASSETS / "zidane.jpg", 0.25, 0.45],
49
- # ],
 
50
  )
51
 
52
  if __name__ == "__main__":
 
6
  from PIL import Image
7
  import gradio as gr
8
 
9
+ model_path = '/new_data_improved_object_detector.pt'
10
 
11
  model = YOLO(model_path)
12
 
 
43
  outputs=gr.Image(type="pil", label="Result"),
44
  title="Ultralytics Gradio",
45
  description="Upload images for inference. The Ultralytics YOLOv8n model is used by default.",
46
+ examples = [
47
+ ['1.jpg'],
48
+ ['2.jpg'],
49
+ ['3.jpg']
50
+ ]
51
  )
52
 
53
  if __name__ == "__main__":