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

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -34,5 +34,5 @@ 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", values=numpy.zeros((636, 101)))], 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", tool="sketch")], outputs=[gradio.Image(image_mode="L"), gradio.Image(image_mode="L"), gradio.Image(image_mode="L")])
38
  demo.run()