vincentb25 commited on
Commit
bf98ce6
·
1 Parent(s): 0852bb1

Changed from default to value

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -161,10 +161,10 @@ gr.Interface(fn=inference,
161
  gr.Image(label="Image to classify", type="pil"),
162
  gr.Textbox(lines=1, label="Class hypotheses:", placeholder="Enter class names separated by ','",),
163
  gr.Slider(minimum=2, maximum=10, step=1, label="GIS: Number of support examples per class"),
164
- gr.Dropdown(['png', 'jpg'], default='png', label='GIS: Image file type'),
165
- gr.Dropdown(['cc_publicdomain', 'cc_attribute', 'cc_sharealike', 'cc_noncommercial', 'cc_nonderived'], default='cc_publicdomain', label='GIS: Copy rights'),
166
- gr.Dropdown(['clipart', 'face', 'lineart', 'stock', 'photo', 'animated', 'imgTypeUndefined'], default='photo', label='GIS: Image type'),
167
- gr.Dropdown(['color', 'gray', 'mono', 'trans', 'imgColorTypeUndefined'], default='color', label='GIS: Image color type'),
168
  ],
169
  theme="grass",
170
  outputs=[
 
161
  gr.Image(label="Image to classify", type="pil"),
162
  gr.Textbox(lines=1, label="Class hypotheses:", placeholder="Enter class names separated by ','",),
163
  gr.Slider(minimum=2, maximum=10, step=1, label="GIS: Number of support examples per class"),
164
+ gr.Dropdown(['png', 'jpg'], value='png', label='GIS: Image file type'),
165
+ gr.Dropdown(['cc_publicdomain', 'cc_attribute', 'cc_sharealike', 'cc_noncommercial', 'cc_nonderived'], value='cc_publicdomain', label='GIS: Copy rights'),
166
+ gr.Dropdown(['clipart', 'face', 'lineart', 'stock', 'photo', 'animated', 'imgTypeUndefined'], value='photo', label='GIS: Image type'),
167
+ gr.Dropdown(['color', 'gray', 'mono', 'trans', 'imgColorTypeUndefined'], value='color', label='GIS: Image color type'),
168
  ],
169
  theme="grass",
170
  outputs=[