yvesnewman commited on
Commit
3788abf
·
1 Parent(s): 89bfb09

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -14,7 +14,8 @@ def classify_image(img):
14
  return dict(zip(categories, map(float, probs)))
15
 
16
  # cell
17
- image = gr.Image(shape=(192, 192))
 
18
  label = gr.outputs.Label()
19
  examples = ['dog.jpg', 'cat.jpg', 'dunno.jpg']
20
 
@@ -22,4 +23,7 @@ intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=exa
22
  intf.launch(inline=False)
23
 
24
  #cell
 
 
 
25
 
 
14
  return dict(zip(categories, map(float, probs)))
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
 
 
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