Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ def transformation(image):
|
|
16 |
print(image)
|
17 |
print( type(image) )
|
18 |
url = 'https://paperswithcode.com/media/datasets/Set5-0000002728-07a9793f_zA3bDjj.jpg'
|
19 |
-
|
20 |
model = EdsrModel.from_pretrained('eugenesiow/edsr-base', scale=4)
|
21 |
inputs = ImageLoader.load_image(image)
|
22 |
preds = model(inputs)
|
|
|
16 |
print(image)
|
17 |
print( type(image) )
|
18 |
url = 'https://paperswithcode.com/media/datasets/Set5-0000002728-07a9793f_zA3bDjj.jpg'
|
19 |
+
# image = Image.open(requests.get(url, stream=True).raw)
|
20 |
model = EdsrModel.from_pretrained('eugenesiow/edsr-base', scale=4)
|
21 |
inputs = ImageLoader.load_image(image)
|
22 |
preds = model(inputs)
|