EnigmaOfTheWorld commited on
Commit
664f55d
Β·
1 Parent(s): 8d1595e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- raise gr.Error("Input image from sketch")
 
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