kbarnard commited on
Commit
d25fe05
1 Parent(s): 2d05d94

fixes for new Gradio

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