yvesnewman commited on
Commit
500fd3f
·
1 Parent(s): c442d54

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -15,15 +15,15 @@ def classify_image(img):
15
 
16
  # cell
17
 
18
- image = gr.inputs.image(shape=(192, 192))
19
- label = gr.outputs.Label()
20
  examples = ['dog.jpg', 'cat.jpg', 'dunno.jpg']
21
 
22
- intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
23
  intf.launch(inline=False)
24
 
25
  #cell
26
- import gradio as gr
27
  #gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(512, 512)), outputs=gr.outputs.Label(num_top_classes=3)).launch(share=True)
28
 
29
 
 
15
 
16
  # cell
17
 
18
+ #image = gr.inputs.image(shape=(192, 192))
19
+ #label = gr.outputs.Label()
20
  examples = ['dog.jpg', 'cat.jpg', 'dunno.jpg']
21
 
22
+ intf = gr.Interface(fn=classify_image, inputs="image", outputs="label", examples="examples")
23
  intf.launch(inline=False)
24
 
25
  #cell
26
+ #import gradio as gr
27
  #gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(512, 512)), outputs=gr.outputs.Label(num_top_classes=3)).launch(share=True)
28
 
29