Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ pipe = AutoPipelineForImage2Image.from_pretrained("stabilityai/sdxl-turbo", torc
|
|
| 10 |
pipe = pipe.to(device)
|
| 11 |
|
| 12 |
# ฟังก์ชันปรับขนาดรูปภาพ
|
| 13 |
-
def resize(
|
| 14 |
img = Image.open(img)
|
| 15 |
img = img.resize((value, value))
|
| 16 |
return img
|
|
|
|
| 10 |
pipe = pipe.to(device)
|
| 11 |
|
| 12 |
# ฟังก์ชันปรับขนาดรูปภาพ
|
| 13 |
+
def resize(value, img):
|
| 14 |
img = Image.open(img)
|
| 15 |
img = img.resize((value, value))
|
| 16 |
return img
|