cotel557 commited on
Commit
ecd5491
·
1 Parent(s): 441df58

Replace deprecated methods with up-to-date ones

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -17,13 +17,12 @@ enable_queue = True
17
 
18
  intf = gr.Interface(
19
  fn=predict,
20
- inputs=gr.inputs.Image(shape=(512, 512)),
21
- outputs=gr.outputs.Label(num_top_classes=3),
22
  title=title,
23
  description=description,
24
  examples=examples,
25
- interpretation=interpretation,
26
- enable_queue=enable_queue
27
  )
28
 
29
  intf.launch()
 
17
 
18
  intf = gr.Interface(
19
  fn=predict,
20
+ inputs=gr.components.Image(shape=(512, 512)),
21
+ outputs=gr.components.Label(),
22
  title=title,
23
  description=description,
24
  examples=examples,
25
+ interpretation=interpretation
 
26
  )
27
 
28
  intf.launch()