Jerwin Pouwelse
commited on
Commit
•
35fd6f5
1
Parent(s):
2f6d84c
Remove gradio depricated code.
Browse files
app.py
CHANGED
@@ -22,11 +22,11 @@ def classify_image(im):
|
|
22 |
|
23 |
|
24 |
# %% ../app.ipynb 11
|
25 |
-
image = gr.inputs.Image(shape=(192, 192))
|
26 |
-
label = gr.outputs.Label()
|
27 |
examples = ["teddy.jpg", "grizzly.jpg", "black.jpg"]
|
28 |
|
29 |
-
|
30 |
#intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
31 |
-
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
32 |
intf.launch(inline=False)
|
|
|
22 |
|
23 |
|
24 |
# %% ../app.ipynb 11
|
25 |
+
# image = gr.inputs.Image(shape=(192, 192))
|
26 |
+
# label = gr.outputs.Label()
|
27 |
examples = ["teddy.jpg", "grizzly.jpg", "black.jpg"]
|
28 |
|
29 |
+
intf = gr.Interface(fn=classify_image, inputs="image", outputs="label", examples=examples)
|
30 |
#intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
31 |
+
# intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
32 |
intf.launch(inline=False)
|