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