Spaces:
Sleeping
Sleeping
Commit
·
bf98ce6
1
Parent(s):
0852bb1
Changed from default to value
Browse files
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'],
|
165 |
-
gr.Dropdown(['cc_publicdomain', 'cc_attribute', 'cc_sharealike', 'cc_noncommercial', 'cc_nonderived'],
|
166 |
-
gr.Dropdown(['clipart', 'face', 'lineart', 'stock', 'photo', 'animated', 'imgTypeUndefined'],
|
167 |
-
gr.Dropdown(['color', 'gray', 'mono', 'trans', 'imgColorTypeUndefined'],
|
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=[
|