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