Spaces:
Sleeping
Sleeping
Updating gradio api from deprecated version
Browse files
app.py
CHANGED
@@ -10,8 +10,8 @@ def classify_painter(img):
|
|
10 |
return dict(zip(categories, map(float, probs)))
|
11 |
|
12 |
|
13 |
-
image = gr.
|
14 |
-
label = gr.
|
15 |
examples = ['davinci.jpeg', 'vangogh.jpeg', 'picasso.jpeg']
|
16 |
|
17 |
iface = gr.Interface(fn=classify_painter, inputs=image,
|
|
|
10 |
return dict(zip(categories, map(float, probs)))
|
11 |
|
12 |
|
13 |
+
image = gr.Image(shape=(192, 192))
|
14 |
+
label = gr.Label()
|
15 |
examples = ['davinci.jpeg', 'vangogh.jpeg', 'picasso.jpeg']
|
16 |
|
17 |
iface = gr.Interface(fn=classify_painter, inputs=image,
|