Update app.py
Browse files
app.py
CHANGED
@@ -14,8 +14,8 @@ def classify_image(img):
|
|
14 |
pred, idx, probs = learn.predict(img)
|
15 |
return dict(zip(categories, map(float, probs)))
|
16 |
|
17 |
-
image = gr.
|
18 |
-
label = gr.
|
19 |
examples = ['samp_lf.jpg', 'samp_other.jpg']
|
20 |
|
21 |
intf= gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
|
|
14 |
pred, idx, probs = learn.predict(img)
|
15 |
return dict(zip(categories, map(float, probs)))
|
16 |
|
17 |
+
image = gr.Image(height=500, width=500)
|
18 |
+
label = gr.Label()
|
19 |
examples = ['samp_lf.jpg', 'samp_other.jpg']
|
20 |
|
21 |
intf= gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|