Kev09 commited on
Commit
99e1cad
1 Parent(s): 2149ece

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -14,7 +14,7 @@ def greet(name):
14
  return "Hello " + name + "!!"
15
 
16
  def transformation(image):
17
- # print(image)
18
  # print( type(image) )
19
  # url = 'https://paperswithcode.com/media/datasets/Set5-0000002728-07a9793f_zA3bDjj.jpg'
20
  # imagee = Image.open(requests.get(url, stream=True).raw)
@@ -30,11 +30,11 @@ def transformation(image):
30
  # print("2 :",prednumpy)
31
  # ImageLoader.save_image(preds, './scaled_2x.png')
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)
 
14
  return "Hello " + name + "!!"
15
 
16
  def transformation(image):
17
+ print(image)
18
  # print( type(image) )
19
  # url = 'https://paperswithcode.com/media/datasets/Set5-0000002728-07a9793f_zA3bDjj.jpg'
20
  # imagee = Image.open(requests.get(url, stream=True).raw)
 
30
  # print("2 :",prednumpy)
31
  # ImageLoader.save_image(preds, './scaled_2x.png')
32
  # ImageLoader.save_compare(inputs, preds, './scaled_2x_compare.png')
33
+ print(image)
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(image)
38
  model = EdsrModel.from_pretrained('eugenesiow/edsr-base', scale=4)
39
  print('ok')
40
  inputs = ImageLoader.load_image(image)