Spaces:
Runtime error
Runtime error
Commit
·
18ac803
1
Parent(s):
b9143a5
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ def classify(img):
|
|
11 |
pred,idx,prob=learn.predict(img)
|
12 |
return dict(zip(categories,map(float,prob)))
|
13 |
image=gr.inputs.Image(shape=(192,192))
|
14 |
-
label=gr.outputs.
|
15 |
examples = ["man.jpg", "woman.jpg"]
|
16 |
intf = gr.Interface(fn=classify, inputs=image,
|
17 |
outputs=label, examples=examples, title="Man or Woman !!!")
|
|
|
11 |
pred,idx,prob=learn.predict(img)
|
12 |
return dict(zip(categories,map(float,prob)))
|
13 |
image=gr.inputs.Image(shape=(192,192))
|
14 |
+
label=gr.outputs.Label()
|
15 |
examples = ["man.jpg", "woman.jpg"]
|
16 |
intf = gr.Interface(fn=classify, inputs=image,
|
17 |
outputs=label, examples=examples, title="Man or Woman !!!")
|