sayedM commited on
Commit
1fdc4b8
·
1 Parent(s): 0dab045

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -65,7 +65,7 @@ examples = [
65
  ["tu3.jpg", 0.25, 0.45],
66
  ]
67
 
68
- outputs = [
69
  ["1.jpg"], # First example: an output image for the cat example
70
  ["2.jpg"] # Second example: an output image for the dog example
71
  ,["3.jpg"]
@@ -109,9 +109,9 @@ with gr.Blocks() as demo:
109
 
110
 
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=output, api_name="yolov8_inference")
113
 
114
- gr.Examples(inputs=examples, outputs=outputs)
115
  # Add the description below the layout
116
  gr.Markdown(description_html)
117
  # Launch the app
 
65
  ["tu3.jpg", 0.25, 0.45],
66
  ]
67
 
68
+ outputs_images = [
69
  ["1.jpg"], # First example: an output image for the cat example
70
  ["2.jpg"] # Second example: an output image for the dog example
71
  ,["3.jpg"]
 
109
 
110
 
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(inputs=examples, outputs=outputs_images)
115
  # Add the description below the layout
116
  gr.Markdown(description_html)
117
  # Launch the app