Kev09 commited on
Commit
2149ece
1 Parent(s): 9dcbc92

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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
- image = Image.open(requests.get(url, stream=True).raw)
 
 
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)