Spaces:
Sleeping
Sleeping
Commit
·
9072dc6
1
Parent(s):
61eabdc
Gradio Adjustment 1
Browse files
app.py
CHANGED
|
@@ -12,9 +12,8 @@ def classify_image(img):
|
|
| 12 |
pred,idx,probs = learn.predict(img)
|
| 13 |
return dict(zip(categories, map(float,probs)))
|
| 14 |
|
| 15 |
-
image = gr.inputs.Image(shape=(192,192))
|
| 16 |
label = gr.outputs.Label()
|
| 17 |
examples = ['dog.jpg','cat.jpg']
|
| 18 |
|
| 19 |
-
intf = gr.Interface(fn=classify_image, inputs=
|
| 20 |
intf.launch(inline=False)
|
|
|
|
| 12 |
pred,idx,probs = learn.predict(img)
|
| 13 |
return dict(zip(categories, map(float,probs)))
|
| 14 |
|
|
|
|
| 15 |
label = gr.outputs.Label()
|
| 16 |
examples = ['dog.jpg','cat.jpg']
|
| 17 |
|
| 18 |
+
intf = gr.Interface(fn=classify_image, inputs=gr.inputs.Image(shape=(192,192)), outputs=label, examples=examples)
|
| 19 |
intf.launch(inline=False)
|