Spaces:
Runtime error
Runtime error
Commit
Β·
664f55d
1
Parent(s):
8d1595e
Update app.py
Browse files
app.py
CHANGED
@@ -82,7 +82,8 @@ def transform_ncuda(img,prompt,cfg=8.0,stps=30,sc=0.8):
|
|
82 |
img2 = Image.open(io.BytesIO(artifact.binary))
|
83 |
return img2
|
84 |
except Exception as e:
|
85 |
-
|
|
|
86 |
# print(f'Caught error: {e}')
|
87 |
# logging.warn(f'Caught error: {e}')
|
88 |
|
|
|
82 |
img2 = Image.open(io.BytesIO(artifact.binary))
|
83 |
return img2
|
84 |
except Exception as e:
|
85 |
+
img = img.resize((256,256), Image.ANTIALIAS)
|
86 |
+
return transform_ncuda(img,prompt,cfg=8.0,stps=30,sc=0.8)
|
87 |
# print(f'Caught error: {e}')
|
88 |
# logging.warn(f'Caught error: {e}')
|
89 |
|