Kev09 commited on
Commit
a822e92
1 Parent(s): ab56083

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
- 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)
 
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)