BhumikaMak commited on
Commit
6ddb87c
·
1 Parent(s): b21eb38

Fix: argument mismatch

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -32,12 +32,11 @@ sample_images = [
32
  interface = gr.Interface(
33
  fn=process_image,
34
  inputs=[
35
- gr.Gallery(
36
  label="Select Sample Image",
37
- value=sample_images[0], # Default value to highlight the first image
38
  choices=sample_images, # List of sample images
39
- type="pil",
40
- interactive=True # Allow user to click and select an image
41
  ),
42
  gr.CheckboxGroup(
43
  choices=["yolov5", "yolov8s"],
 
32
  interface = gr.Interface(
33
  fn=process_image,
34
  inputs=[
35
+ gr.Radio(
36
  label="Select Sample Image",
 
37
  choices=sample_images, # List of sample images
38
+ value=sample_images[0], # Default value to highlight the first image
39
+ type="pil", # Type of the input value (image)
40
  ),
41
  gr.CheckboxGroup(
42
  choices=["yolov5", "yolov8s"],