Update app.py
Browse files
app.py
CHANGED
@@ -92,12 +92,10 @@ outputs = [gr.Image( type="pil", label="Output Image"),
|
|
92 |
gr.Textbox(label="Result")
|
93 |
]
|
94 |
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
# [os.path.join(image_directory, "th.jpg"),640, 0.3, 0.6]
|
100 |
-
# ]
|
101 |
title = """Corn Deseases Detection Finetuned YOLOv8
|
102 |
<br></br>
|
103 |
<a href="https://colab.research.google.com/drive/1ittrxr--vJeRqJquZyNfo7dlq6xRADox?authuser=4">
|
@@ -143,7 +141,7 @@ video_iface = gr.Interface(
|
|
143 |
|
144 |
|
145 |
image_iface = gr.Interface(fn=response2, inputs=inputs, outputs=outputs,
|
146 |
-
|
147 |
title=title, description=description)
|
148 |
|
149 |
demo = gr.TabbedInterface([image_iface, video_iface], ["Image Inference", "Video Inference"])
|
|
|
92 |
gr.Textbox(label="Result")
|
93 |
]
|
94 |
|
95 |
+
examples = [[os.path.join(image_directory, "jagung.jpeg"),640, 0.3, 0.6],
|
96 |
+
[os.path.join(image_directory, "jagung4.jpeg"),640, 0.3, 0.6],
|
97 |
+
[os.path.join(image_directory, "jagung6.jpeg"),640, 0.3, 0.6],
|
98 |
+
]
|
|
|
|
|
99 |
title = """Corn Deseases Detection Finetuned YOLOv8
|
100 |
<br></br>
|
101 |
<a href="https://colab.research.google.com/drive/1ittrxr--vJeRqJquZyNfo7dlq6xRADox?authuser=4">
|
|
|
141 |
|
142 |
|
143 |
image_iface = gr.Interface(fn=response2, inputs=inputs, outputs=outputs,
|
144 |
+
examples=examples
|
145 |
title=title, description=description)
|
146 |
|
147 |
demo = gr.TabbedInterface([image_iface, video_iface], ["Image Inference", "Video Inference"])
|