Commit
·
35c98b4
1
Parent(s):
b4666fb
Update app.py
Browse files
app.py
CHANGED
@@ -18,8 +18,8 @@ def recognize_image(image):
|
|
18 |
print(pred)
|
19 |
return dict(zip(labels, map(float, probs)))
|
20 |
|
21 |
-
image = gr.Image(image_mode="RGB")
|
22 |
-
label=gr.Label()
|
23 |
example=['th(11).jpeg']
|
24 |
iface = gr.Interface(fn=recognize_image, inputs=image, outputs=label,examples=example )
|
25 |
iface.launch(inline=False, share=True)
|
|
|
18 |
print(pred)
|
19 |
return dict(zip(labels, map(float, probs)))
|
20 |
|
21 |
+
image = gr.inputs.Image(image_mode="RGB")
|
22 |
+
label=gr.outputs.Label()
|
23 |
example=['th(11).jpeg']
|
24 |
iface = gr.Interface(fn=recognize_image, inputs=image, outputs=label,examples=example )
|
25 |
iface.launch(inline=False, share=True)
|