Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,9 @@ def transformation(image):
|
|
32 |
# ImageLoader.save_compare(inputs, preds, './scaled_2x_compare.png')
|
33 |
|
34 |
url = 'https://paperswithcode.com/media/datasets/Set5-0000002728-07a9793f_zA3bDjj.jpg'
|
35 |
-
|
|
|
|
|
36 |
model = EdsrModel.from_pretrained('eugenesiow/edsr-base', scale=4)
|
37 |
print('ok')
|
38 |
inputs = ImageLoader.load_image(image)
|
|
|
32 |
# ImageLoader.save_compare(inputs, preds, './scaled_2x_compare.png')
|
33 |
|
34 |
url = 'https://paperswithcode.com/media/datasets/Set5-0000002728-07a9793f_zA3bDjj.jpg'
|
35 |
+
url='photofloue.jpg'
|
36 |
+
# image = Image.open(requests.get(url, stream=True).raw)
|
37 |
+
image = Image.open(url)
|
38 |
model = EdsrModel.from_pretrained('eugenesiow/edsr-base', scale=4)
|
39 |
print('ok')
|
40 |
inputs = ImageLoader.load_image(image)
|