Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ def classify_image(image):
|
|
10 |
pred, idx, probs = learner.predict(img)
|
11 |
return dict(zip(categories, map(float, probs)))
|
12 |
|
13 |
-
image = gr.inputs.Image(
|
14 |
label = gr.outputs.Label()
|
15 |
examples = ['celeb.png', 'holi-celebration-india.jpg', 'riot.png', 'riot2.jpg']
|
16 |
|
|
|
10 |
pred, idx, probs = learner.predict(img)
|
11 |
return dict(zip(categories, map(float, probs)))
|
12 |
|
13 |
+
image = gr.inputs.Image(shape=(192, 192))
|
14 |
label = gr.outputs.Label()
|
15 |
examples = ['celeb.png', 'holi-celebration-india.jpg', 'riot.png', 'riot2.jpg']
|
16 |
|