Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
| 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:
|