vumichien commited on
Commit
c62c7e5
1 Parent(s): e137b66

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,11 +19,11 @@ def infer(original_image):
19
  output_image = output_image.reshape(
20
  (np.shape(output_image)[0], np.shape(output_image)[1], 3)
21
  )
22
- output_image = np.uint32(output_image)
23
  return output_image
24
 
25
  iface = gr.Interface(
26
  fn=infer,
27
- inputs=[gr.inputs.Image(label="image", type="pil", shape=(256, 256))],
28
  outputs="image",
29
  examples=examples).launch(debug=True)
 
19
  output_image = output_image.reshape(
20
  (np.shape(output_image)[0], np.shape(output_image)[1], 3)
21
  )
22
+ output_image = np.uint8(output_image)
23
  return output_image
24
 
25
  iface = gr.Interface(
26
  fn=infer,
27
+ inputs=[gr.inputs.Image(label="image", type="pil")],
28
  outputs="image",
29
  examples=examples).launch(debug=True)