Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ def classify_image (image):
|
|
11 |
pred,idx,prob = learn.predict(image)
|
12 |
return dict(zip(categories, map(float, probs)))
|
13 |
|
14 |
-
input_image = gradio.inputs
|
15 |
labels = gradio.outputs.Label()
|
16 |
|
17 |
intf = gradio.Interface(fn = classify_image, inputs = input_image, outputs = labels)
|
|
|
11 |
pred,idx,prob = learn.predict(image)
|
12 |
return dict(zip(categories, map(float, probs)))
|
13 |
|
14 |
+
input_image = gradio.inputs.Image(shape=(192, 192))
|
15 |
labels = gradio.outputs.Label()
|
16 |
|
17 |
intf = gradio.Interface(fn = classify_image, inputs = input_image, outputs = labels)
|