Old-Fat-Boy commited on
Commit
c4c2a8b
1 Parent(s): 620c9d6

debug app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -18,8 +18,8 @@ def classify_image(img):
18
  return dict(zip(categories, map(float,probs)))
19
 
20
  # %% app.ipynb 9
21
- image = gr.inputs.Image(shape=(192,192))
22
- label = gr.outputs.Label()
23
  examples = ['bird.jpg', 'above_average.jpg', 'below_average.jpg']
24
  intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
25
- intf.launch(inline=False,share=True)
 
18
  return dict(zip(categories, map(float,probs)))
19
 
20
  # %% app.ipynb 9
21
+ image = gr.Image(shape=(192,192))
22
+ label = gr.Label()
23
  examples = ['bird.jpg', 'above_average.jpg', 'below_average.jpg']
24
  intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
25
+ intf.launch(inline=False)