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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -2,9 +2,10 @@ import gradio as gr
2
  from PIL import Image
3
 
4
  def resize_image(img, W, H):
5
- resized_img = img.resize((W, H))
6
  return resized_img
7
 
 
8
  iface = gr.Interface(
9
  fn=resize_image,
10
  inputs=["image", "number", "number"],
 
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
+
9
  iface = gr.Interface(
10
  fn=resize_image,
11
  inputs=["image", "number", "number"],