Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -34,5 +34,6 @@ def predict(mask):
|
|
34 |
print(output.shape)
|
35 |
return output[0, :, :, 0], output[0, :, :, 1], output[0, :, :, 2]
|
36 |
|
37 |
-
demo = gradio.Interface(fn=predict, inputs=[gradio.Image(image_mode="L", source="canvas"
|
|
|
38 |
demo.run()
|
|
|
34 |
print(output.shape)
|
35 |
return output[0, :, :, 0], output[0, :, :, 1], output[0, :, :, 2]
|
36 |
|
37 |
+
demo = gradio.Interface(fn=predict, inputs=[gradio.Image(image_mode="L", source="canvas")], outputs=[gradio.Image(image_mode="L"), gradio.Image(image_mode="L"), gradio.Image(image_mode="L")])
|
38 |
+
|
39 |
demo.run()
|