linoyts HF staff commited on
Commit
5a84df5
·
verified ·
1 Parent(s): 54023ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -37,7 +37,10 @@ def resize_img(image, max_size=1024):
37
  return image.resize((new_width, new_height), Image.LANCZOS)
38
 
39
  def check_style(stylezation):
40
- return True, 2
 
 
 
41
 
42
  def check_hyper_flux_lora(enable_hyper_flux):
43
  if enable_hyper_flux:
 
37
  return image.resize((new_width, new_height), Image.LANCZOS)
38
 
39
  def check_style(stylezation):
40
+ if stylezation:
41
+ return True, 2
42
+ else:
43
+ return False, 1
44
 
45
  def check_hyper_flux_lora(enable_hyper_flux):
46
  if enable_hyper_flux: