Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -38,10 +38,14 @@ def transformation(image):
|
|
38 |
preds = model(inputs)
|
39 |
print('ok1')
|
40 |
# ImageLoader.save_image(preds, './scaled_2x.png')
|
41 |
-
ImageLoader.save_compare(inputs, preds, '
|
42 |
print("ok2")
|
43 |
-
|
44 |
-
|
|
|
|
|
|
|
|
|
45 |
|
46 |
|
47 |
|
|
|
38 |
preds = model(inputs)
|
39 |
print('ok1')
|
40 |
# ImageLoader.save_image(preds, './scaled_2x.png')
|
41 |
+
ImageLoader.save_compare(inputs, preds, 'scaleed_2x_compare.png')
|
42 |
print("ok2")
|
43 |
+
prednumpy=preds.detach().numpy()
|
44 |
+
print('pnump',type(prednumpy))
|
45 |
+
print('predtype',preds)
|
46 |
+
print('ok3')
|
47 |
+
|
48 |
+
return prednumpy
|
49 |
|
50 |
|
51 |
|