Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -103,7 +103,7 @@ with gr.Blocks() as demo:
|
|
103 |
IOU_Slider=gr.Slider(minimum=0.0, maximum=1.0, value=0.45, step=0.05, label="IOU Threshold")
|
104 |
|
105 |
|
106 |
-
|
107 |
|
108 |
button = gr.Button("Run")
|
109 |
|
@@ -111,7 +111,13 @@ with gr.Blocks() as demo:
|
|
111 |
# Define the event listener that connects the input and output components and triggers the function
|
112 |
button.click(fn=yolov8_inference, inputs=[image_input, conf_slider,IOU_Slider], outputs=outputs, api_name="yolov8_inference")
|
113 |
|
114 |
-
gr.Examples(
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
# Add the description below the layout
|
116 |
gr.Markdown(description_html)
|
117 |
# Launch the app
|
|
|
103 |
IOU_Slider=gr.Slider(minimum=0.0, maximum=1.0, value=0.45, step=0.05, label="IOU Threshold")
|
104 |
|
105 |
|
106 |
+
|
107 |
|
108 |
button = gr.Button("Run")
|
109 |
|
|
|
111 |
# Define the event listener that connects the input and output components and triggers the function
|
112 |
button.click(fn=yolov8_inference, inputs=[image_input, conf_slider,IOU_Slider], outputs=outputs, api_name="yolov8_inference")
|
113 |
|
114 |
+
gr.Examples(
|
115 |
+
fn=yolov8_inference,
|
116 |
+
examples=examples,
|
117 |
+
inputs=[image_input, conf_slider,IOU_Slider],
|
118 |
+
outputs=[outputs]
|
119 |
+
)
|
120 |
+
# gr.Examples(inputs=examples, outputs=outputs_images)
|
121 |
# Add the description below the layout
|
122 |
gr.Markdown(description_html)
|
123 |
# Launch the app
|