ccm commited on
Commit
4c6d7c6
·
1 Parent(s): 5ec0e94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ def predict(mask):
35
  return output[0, :, :, 0], output[0, :, :, 1], output[0, :, :, 2]
36
 
37
  demo = gradio.Interface(fn=predict,
38
- inputs=gradio.Image(image_mode="L", source="canvas", tool="sketch", shape=(636, 101)), #, value=numpy.round(numpy.random.rand(101, 636, 3))),
39
  outputs=[gradio.Image(image_mode="L"), gradio.Image(image_mode="L"), gradio.Image(image_mode="L")])
40
 
41
  if __name__ == "__main__":
 
35
  return output[0, :, :, 0], output[0, :, :, 1], output[0, :, :, 2]
36
 
37
  demo = gradio.Interface(fn=predict,
38
+ inputs=gradio.Image(image_mode="L", source="canvas", tool="sketch", values=numpy.zeros(636, 101), #, value=numpy.round(numpy.random.rand(101, 636, 3))),
39
  outputs=[gradio.Image(image_mode="L"), gradio.Image(image_mode="L"), gradio.Image(image_mode="L")])
40
 
41
  if __name__ == "__main__":