update code for new gradio
Browse files
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 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
|
|
|
|
|
|
|
|
| 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()
|