Imadsarvm commited on
Commit
9a106bf
1 Parent(s): 4f0c85f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -2
app.py CHANGED
@@ -27,7 +27,7 @@ def resize_image(image):
27
  image = image.resize(model_input_size, Image.BILINEAR)
28
  return image
29
 
30
- def process(image):
31
 
32
  # prepare input
33
  orig_image = Image.fromarray(image)
@@ -57,7 +57,16 @@ def process(image):
57
  # new_orig_image = orig_image.convert('RGBA')
58
 
59
  return new_im
60
- # return [new_orig_image, new_im]
 
 
 
 
 
 
 
 
 
61
 
62
 
63
  # block = gr.Blocks().queue()
 
27
  image = image.resize(model_input_size, Image.BILINEAR)
28
  return image
29
 
30
+ '''def process(image):
31
 
32
  # prepare input
33
  orig_image = Image.fromarray(image)
 
57
  # new_orig_image = orig_image.convert('RGBA')
58
 
59
  return new_im
60
+ # return [new_orig_image, new_im]'''
61
+
62
+ def process(image):
63
+
64
+ # prepare input
65
+ orig_image = Image.fromarray(image)
66
+ w,h = orig_im_size = orig_image.size
67
+
68
+ return orig_image
69
+ # return [new_orig_image, new_im]
70
 
71
 
72
  # block = gr.Blocks().queue()