SoulPerforms commited on
Commit
55cbd81
·
verified ·
1 Parent(s): 287c377

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -36,7 +36,7 @@ def predict_image(img, conf_threshold, iou_threshold):
36
 
37
  return im
38
 
39
- current_directory = "./image"
40
 
41
  iface = gr.Interface(
42
  fn=predict_image,
@@ -49,8 +49,8 @@ iface = gr.Interface(
49
  title="Fire Detection using YOLOv8n on Gradio",
50
  description="Upload images for inference. The Ultralytics YOLOv8n trained model is used for inference.",
51
  examples=[
52
- [os.path.join(current_directory, "fire_image_1.jpg")],
53
- [os.path.join(current_directory, "fire_image_3.jpg")],
54
  ]
55
  )
56
 
 
36
 
37
  return im
38
 
39
+ # current_directory = ./image
40
 
41
  iface = gr.Interface(
42
  fn=predict_image,
 
49
  title="Fire Detection using YOLOv8n on Gradio",
50
  description="Upload images for inference. The Ultralytics YOLOv8n trained model is used for inference.",
51
  examples=[
52
+ [os.path.join(os.path.dirname(__file__), "image/fire_image_1.jpg")],
53
+ [os.path.join(os.path.dirname(__file__), "image/fire_image_3.jpg")],
54
  ]
55
  )
56