Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def predict_image(img, conf_threshold, iou_threshold):
|
|
36 |
|
37 |
return im
|
38 |
|
39 |
-
|
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(
|
53 |
-
[os.path.join(
|
54 |
]
|
55 |
)
|
56 |
|
|
|
36 |
|
37 |
return im
|
38 |
|
39 |
+
current_directory = "/home/user/app/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(current_directory, "fire_image_1.jpg")],
|
53 |
+
[os.path.join(current_directory, "fire_image_3.jpg")],
|
54 |
]
|
55 |
)
|
56 |
|