Update app.py
Browse files
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"],
|