fixes for new Gradio
Browse files
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(
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
|
|
|
|
|
|
|
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()
|