update for new gradio
Browse files
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(
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
|
|
|
|
|
|
|
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()
|