awacke1 commited on
Commit
ea656ff
·
1 Parent(s): f15cc8e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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, single_checkbox, checkboxes, im4, file, df1, df2,):
24
 
25
  return (
26
  (text1 if single_checkbox else text2) + ", selected:" + ", ".join(checkboxes), # Text
@@ -69,7 +69,7 @@ demo = gr.Interface(
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"),
75
  #gr.Image(label="Image w/ Cropper", tool="select"),
 
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, radio, im4, file, df1, df2,):
24
 
25
  return (
26
  (text1 if single_checkbox else text2) + ", selected:" + ", ".join(checkboxes), # Text
 
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"),
75
  #gr.Image(label="Image w/ Cropper", tool="select"),