ccm commited on
Commit
5405174
1 Parent(s): 9cc2dcb

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -1
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", tool="sketch")], outputs=[gradio.Image(image_mode="L"), gradio.Image(image_mode="L"), gradio.Image(image_mode="L")])
 
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()