Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,18 +22,18 @@ def transformation(image):
|
|
22 |
preds = model(inputs)
|
23 |
print("1 :",preds)
|
24 |
print( type(preds) )
|
25 |
-
|
26 |
|
27 |
|
28 |
#preds=np.array(preds)
|
29 |
-
print("2 :",
|
30 |
ImageLoader.save_image(preds, './scaled_2x.png')
|
31 |
ImageLoader.save_compare(inputs, preds, './scaled_2x_compare.png')
|
32 |
|
33 |
|
34 |
|
35 |
# large_image = cartoon_upsampling_8x(image, 'a_8x_larger_output_image.png' )
|
36 |
-
return
|
37 |
|
38 |
with gr.Blocks() as demo:
|
39 |
image1=gr.Image(type='filepath')
|
|
|
22 |
preds = model(inputs)
|
23 |
print("1 :",preds)
|
24 |
print( type(preds) )
|
25 |
+
prednumpy=preds.detach().numpy()
|
26 |
|
27 |
|
28 |
#preds=np.array(preds)
|
29 |
+
print("2 :",prednumpy)
|
30 |
ImageLoader.save_image(preds, './scaled_2x.png')
|
31 |
ImageLoader.save_compare(inputs, preds, './scaled_2x_compare.png')
|
32 |
|
33 |
|
34 |
|
35 |
# large_image = cartoon_upsampling_8x(image, 'a_8x_larger_output_image.png' )
|
36 |
+
return prednumpy
|
37 |
|
38 |
with gr.Blocks() as demo:
|
39 |
image1=gr.Image(type='filepath')
|