Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
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.
|
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)
|
|
|
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)
|