kbarnard commited on
Commit
3116596
1 Parent(s): bcf99d4

update for new gradio

Browse files
Files changed (1) hide show
  1. app.py +10 -7
app.py CHANGED
@@ -29,10 +29,13 @@ description = "Gradio demo for UWROV Deepsea Detector: Developed by Peyton " \
29
 
30
  examples = glob.glob("images/*.png")
31
 
32
- gr.Interface(gradio_app,
33
- inputs=[gr.inputs.Image(type="filepath")],
34
- outputs=gr.outputs.Image(type="pil"),
35
- enable_queue=True,
36
- title=title,
37
- description=description,
38
- examples=examples).launch()
 
 
 
 
29
 
30
  examples = glob.glob("images/*.png")
31
 
32
+ interface = gr.Interface(
33
+ gradio_app,
34
+ inputs=[gr.components.Image(type="filepath")],
35
+ outputs=gr.components.Image(type="pil"),
36
+ title=title,
37
+ description=description,
38
+ examples=examples
39
+ )
40
+
41
+ interface.queue().launch()