cls00 commited on
Commit
1992a79
·
verified ·
1 Parent(s): fde6083

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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=(im_size,im_size))
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)