Spaces:
Sleeping
Sleeping
Commit
·
6ddb87c
1
Parent(s):
b21eb38
Fix: argument mismatch
Browse files
app.py
CHANGED
@@ -32,12 +32,11 @@ sample_images = [
|
|
32 |
interface = gr.Interface(
|
33 |
fn=process_image,
|
34 |
inputs=[
|
35 |
-
gr.
|
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 |
-
|
40 |
-
|
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"],
|