Quake24 commited on
Commit
44901fc
1 Parent(s): 1f3ee68

Updating gradio api from deprecated version

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -10,8 +10,8 @@ def classify_painter(img):
10
  return dict(zip(categories, map(float, probs)))
11
 
12
 
13
- image = gr.inputs.Image(shape=(192, 192))
14
- label = gr.outputs.Label()
15
  examples = ['davinci.jpeg', 'vangogh.jpeg', 'picasso.jpeg']
16
 
17
  iface = gr.Interface(fn=classify_painter, inputs=image,
 
10
  return dict(zip(categories, map(float, probs)))
11
 
12
 
13
+ image = gr.Image(shape=(192, 192))
14
+ label = gr.Label()
15
  examples = ['davinci.jpeg', 'vangogh.jpeg', 'picasso.jpeg']
16
 
17
  iface = gr.Interface(fn=classify_painter, inputs=image,