Update app.py
Browse files
app.py
CHANGED
|
@@ -28,15 +28,15 @@ def classify_image(img):
|
|
| 28 |
# %% ../app.ipynb 8
|
| 29 |
im_size = 128
|
| 30 |
|
| 31 |
-
image = gr.Image(shape=(
|
| 32 |
-
label = gr.Label()
|
| 33 |
examples = ['city.jpg',
|
| 34 |
'town.jpg',
|
| 35 |
'countryside.jpg',
|
| 36 |
'ocean.jpg']
|
| 37 |
|
| 38 |
intf = gr.Interface(fn=classify_image,
|
| 39 |
-
inputs=image,
|
| 40 |
-
outputs=label,
|
| 41 |
examples=examples)
|
| 42 |
intf.launch(inline=False)
|
|
|
|
| 28 |
# %% ../app.ipynb 8
|
| 29 |
im_size = 128
|
| 30 |
|
| 31 |
+
#image = gr.Image(shape=(128,128))
|
| 32 |
+
#label = gr.Label()
|
| 33 |
examples = ['city.jpg',
|
| 34 |
'town.jpg',
|
| 35 |
'countryside.jpg',
|
| 36 |
'ocean.jpg']
|
| 37 |
|
| 38 |
intf = gr.Interface(fn=classify_image,
|
| 39 |
+
inputs="image",
|
| 40 |
+
outputs="label",
|
| 41 |
examples=examples)
|
| 42 |
intf.launch(inline=False)
|