Abs6187 commited on
Commit
e99f306
·
verified ·
1 Parent(s): 0fc9855

Update ui.py

Browse files
Files changed (1) hide show
  1. ui.py +1 -13
ui.py CHANGED
@@ -206,7 +206,7 @@ class UIComponents:
206
  def create_examples_tab(self, input_image, output_components):
207
  with gr.TabItem("Examples"):
208
  gr.Markdown("### Sample Images")
209
- gr.Markdown("Click any example to test the detection system:")
210
 
211
  gr.Examples(
212
  examples=[
@@ -219,18 +219,6 @@ class UIComponents:
219
  ["Sample-Image-8.jpg"],
220
  ],
221
  inputs=input_image,
222
- outputs=[
223
- output_components['output_image'],
224
- output_components['output_table'],
225
- output_components['output_stats'],
226
- output_components['license_gallery'],
227
- output_components['download_file'],
228
- output_components['plate_text_output'],
229
- ],
230
- fn=lambda img: yolov8_detect(
231
- img, 640, 0.4, 0.5, True, True, True, False
232
- ),
233
- cache_examples=True
234
  )
235
 
236
  def create_info_tab(self):
 
206
  def create_examples_tab(self, input_image, output_components):
207
  with gr.TabItem("Examples"):
208
  gr.Markdown("### Sample Images")
209
+ gr.Markdown("Click any example to load it, then click 'Start Detection':")
210
 
211
  gr.Examples(
212
  examples=[
 
219
  ["Sample-Image-8.jpg"],
220
  ],
221
  inputs=input_image,
 
 
 
 
 
 
 
 
 
 
 
 
222
  )
223
 
224
  def create_info_tab(self):