Spaces:
Running
Running
minimal workable demo for prediction
Browse files
app.py
CHANGED
@@ -65,9 +65,10 @@ def fn(image):
|
|
65 |
return Image.fromarray(drawed[..., ::-1])
|
66 |
|
67 |
iface = gr.Interface(
|
68 |
-
inputs=gr.Image(type="numpy"),
|
69 |
-
outputs="Image",
|
70 |
fn=fn
|
|
|
|
|
71 |
)
|
72 |
|
|
|
73 |
|
|
|
65 |
return Image.fromarray(drawed[..., ::-1])
|
66 |
|
67 |
iface = gr.Interface(
|
|
|
|
|
68 |
fn=fn
|
69 |
+
inputs=gr.Image(type="numpy"),
|
70 |
+
outputs=gr.Image(type="pil")
|
71 |
)
|
72 |
|
73 |
+
iface.launch()
|
74 |
|