Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ JSONOBJ = """{"items":{"item":[{"id": "0001","type": null,"is_good": false,"ppu"
|
|
20 |
|
21 |
#def fn( text1, text2, num, slider1, slider2, single_checkbox, checkboxes, radio, dropdown, im1, im2, im3, im4,
|
22 |
# video, audio1, audio2, file, df1, df2,):
|
23 |
-
def fn( text1, text2, im4, file, df1, df2,):
|
24 |
|
25 |
return (
|
26 |
(text1 if single_checkbox else text2) + ", selected:" + ", ".join(checkboxes), # Text
|
@@ -67,8 +67,8 @@ demo = gr.Interface(
|
|
67 |
#gr.Number(label="Number", value=42),
|
68 |
#gr.Slider(10, 20, value=15, label="Slider: 10 - 20"),
|
69 |
#gr.Slider(maximum=20, step=0.04, label="Slider: step @ 0.04"),
|
70 |
-
|
71 |
-
|
72 |
#gr.Radio(label="Radio", choices=CHOICES, value=CHOICES[2]),
|
73 |
#gr.Dropdown(label="Dropdown", choices=CHOICES),
|
74 |
#gr.Image(label="Image"),
|
|
|
20 |
|
21 |
#def fn( text1, text2, num, slider1, slider2, single_checkbox, checkboxes, radio, dropdown, im1, im2, im3, im4,
|
22 |
# video, audio1, audio2, file, df1, df2,):
|
23 |
+
def fn( text1, text2, single_checkbox, checkboxes, im4, file, df1, df2,):
|
24 |
|
25 |
return (
|
26 |
(text1 if single_checkbox else text2) + ", selected:" + ", ".join(checkboxes), # Text
|
|
|
67 |
#gr.Number(label="Number", value=42),
|
68 |
#gr.Slider(10, 20, value=15, label="Slider: 10 - 20"),
|
69 |
#gr.Slider(maximum=20, step=0.04, label="Slider: step @ 0.04"),
|
70 |
+
gr.Checkbox(label="Checkbox"),
|
71 |
+
gr.CheckboxGroup(label="CheckboxGroup", choices=CHOICES, value=CHOICES[0:2]),
|
72 |
#gr.Radio(label="Radio", choices=CHOICES, value=CHOICES[2]),
|
73 |
#gr.Dropdown(label="Dropdown", choices=CHOICES),
|
74 |
#gr.Image(label="Image"),
|