Spaces:
Runtime error
Runtime error
Commit ·
8a63578
1
Parent(s): c8f460a
Updated app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,10 @@ pipe = pipeline(
|
|
| 20 |
)
|
| 21 |
demo = gr.Interface(
|
| 22 |
fn=predict,
|
| 23 |
-
inputs=gr.Image(
|
|
|
|
|
|
|
|
|
|
| 24 |
outputs=gr.AnnotatedImage(
|
| 25 |
color_map={
|
| 26 |
"Background (waterbody)": "#000000",
|
|
@@ -31,7 +34,8 @@ demo = gr.Interface(
|
|
| 31 |
"Reefs and invertebrates": "#00FFFF",
|
| 32 |
"Fish and vertebrates": "#FF00FF",
|
| 33 |
"Sea-floor and rocks": "#FFFFFF",
|
| 34 |
-
}
|
|
|
|
| 35 |
),
|
| 36 |
examples="examples",
|
| 37 |
)
|
|
|
|
| 20 |
)
|
| 21 |
demo = gr.Interface(
|
| 22 |
fn=predict,
|
| 23 |
+
inputs=gr.Image(
|
| 24 |
+
type="pil",
|
| 25 |
+
height=400,
|
| 26 |
+
),
|
| 27 |
outputs=gr.AnnotatedImage(
|
| 28 |
color_map={
|
| 29 |
"Background (waterbody)": "#000000",
|
|
|
|
| 34 |
"Reefs and invertebrates": "#00FFFF",
|
| 35 |
"Fish and vertebrates": "#FF00FF",
|
| 36 |
"Sea-floor and rocks": "#FFFFFF",
|
| 37 |
+
},
|
| 38 |
+
height=400,
|
| 39 |
),
|
| 40 |
examples="examples",
|
| 41 |
)
|