Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -79,13 +79,13 @@ def app():
|
|
| 79 |
step=0.1,
|
| 80 |
value=0.45,
|
| 81 |
)
|
| 82 |
-
|
| 83 |
|
| 84 |
with gr.Column():
|
| 85 |
output_image = gr.Image(type="pil", label="Annotated Image")
|
| 86 |
|
| 87 |
-
|
| 88 |
-
fn=
|
| 89 |
inputs=[
|
| 90 |
image,
|
| 91 |
model_id,
|
|
|
|
| 79 |
step=0.1,
|
| 80 |
value=0.45,
|
| 81 |
)
|
| 82 |
+
LeYOLO_infer = gr.Button(value="Detect Objects")
|
| 83 |
|
| 84 |
with gr.Column():
|
| 85 |
output_image = gr.Image(type="pil", label="Annotated Image")
|
| 86 |
|
| 87 |
+
LeYOLO_infer.click(
|
| 88 |
+
fn=LeYOLO_inference,
|
| 89 |
inputs=[
|
| 90 |
image,
|
| 91 |
model_id,
|