kbarnard commited on
Commit
ca45012
1 Parent(s): 5617457

update code for new gradio

Browse files
Files changed (1) hide show
  1. app.py +9 -7
app.py CHANGED
@@ -33,10 +33,12 @@ description = "Gradio demo for MBARI Monterey Bay Benthic Supercategory: This "
33
 
34
  examples = glob.glob("images/*.png")
35
 
36
- gr.Interface(gradio_app,
37
- inputs=[gr.inputs.Image(type="filepath")],
38
- outputs=gr.outputs.Image(type="pil"),
39
- enable_queue=True,
40
- title=title,
41
- description=description,
42
- examples=examples).launch()
 
 
 
33
 
34
  examples = glob.glob("images/*.png")
35
 
36
+ interface = gr.Interface(gradio_app,
37
+ inputs=[gr.components.Image(type="filepath")],
38
+ outputs=gr.components.Image(type="pil"),
39
+ title=title,
40
+ description=description,
41
+ examples=examples
42
+ )
43
+
44
+ interface.queue().launch()