OriLib commited on
Commit
80aa27f
1 Parent(s): 5068bdc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,11 +21,11 @@ transform_image = transforms.Compose(
21
  )
22
 
23
  def fn(image):
 
24
  im = load_img(image, output_type="pil")
25
  im = im.convert("RGB")
26
  origin = im.copy()
27
- image = process(im)
28
- image_path = process_file(f)
29
  return (image, origin), image_path
30
 
31
  @spaces.GPU
 
21
  )
22
 
23
  def fn(image):
24
+ image_path = process_file(image)
25
  im = load_img(image, output_type="pil")
26
  im = im.convert("RGB")
27
  origin = im.copy()
28
+ image = process(im)
 
29
  return (image, origin), image_path
30
 
31
  @spaces.GPU