Jiayi-Pan commited on
Commit
7804bee
1 Parent(s): 86c535d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  from PIL import Image
3
 
4
  def resize_image(img, W, H):
5
- resized_img = img.resize((int(W), int(H)))
6
  return resized_img
7
 
8
 
 
2
  from PIL import Image
3
 
4
  def resize_image(img, W, H):
5
+ resized_img = Image.fromarray(img).resize((int(W), int(H)))
6
  return resized_img
7
 
8