Spaces:
Sleeping
Sleeping
Commit
·
0852bb1
1
Parent(s):
ab91189
changed numpy requirements and app gr.inputs
Browse files- app.py +7 -7
- requirements.txt +1 -1
app.py
CHANGED
@@ -158,13 +158,13 @@ article = "<p style='text-align: center'><a href='http://arxiv.org/abs/2204.0730
|
|
158 |
|
159 |
gr.Interface(fn=inference,
|
160 |
inputs=[
|
161 |
-
gr.
|
162 |
-
gr.
|
163 |
-
gr.
|
164 |
-
gr.
|
165 |
-
gr.
|
166 |
-
gr.
|
167 |
-
gr.
|
168 |
],
|
169 |
theme="grass",
|
170 |
outputs=[
|
|
|
158 |
|
159 |
gr.Interface(fn=inference,
|
160 |
inputs=[
|
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=[
|
requirements.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
torch==1.13.1
|
2 |
torchvision
|
3 |
-
numpy
|
4 |
tqdm
|
5 |
matplotlib
|
6 |
dotmap
|
|
|
1 |
torch==1.13.1
|
2 |
torchvision
|
3 |
+
numpy<2.0
|
4 |
tqdm
|
5 |
matplotlib
|
6 |
dotmap
|