Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,9 +11,9 @@ def classify_images(img):
|
|
11 |
pred, idx, probs = learn.predict(img)
|
12 |
return dict(zip(categories, map(float, probs)))
|
13 |
|
14 |
-
image = gr.
|
15 |
-
label = gr.
|
16 |
examples = ['dog.jpg']
|
17 |
|
18 |
intf = gr.Interface(fn=classify_images, inputs=image, outputs=label, examples=examples)
|
19 |
-
intf.launch(inline=False)
|
|
|
11 |
pred, idx, probs = learn.predict(img)
|
12 |
return dict(zip(categories, map(float, probs)))
|
13 |
|
14 |
+
image = gr.Image(shape=(192, 192))
|
15 |
+
label = gr.Label()
|
16 |
examples = ['dog.jpg']
|
17 |
|
18 |
intf = gr.Interface(fn=classify_images, inputs=image, outputs=label, examples=examples)
|
19 |
+
intf.launch(inline=False)
|