Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -62,6 +62,8 @@ def main():
|
|
| 62 |
image_cfg_scale: float,
|
| 63 |
):
|
| 64 |
seed = random.randint(0, 100000) if randomize_seed else seed
|
|
|
|
|
|
|
| 65 |
width, height = input_image.size
|
| 66 |
factor = 512 / max(width, height)
|
| 67 |
factor = math.ceil(min(width, height) * factor / 64) * 64 / min(width, height)
|
|
|
|
| 62 |
image_cfg_scale: float,
|
| 63 |
):
|
| 64 |
seed = random.randint(0, 100000) if randomize_seed else seed
|
| 65 |
+
text_cfg_scale = text_cfg_scale
|
| 66 |
+
image_cfg_scale = image_cfg_scale
|
| 67 |
width, height = input_image.size
|
| 68 |
factor = 512 / max(width, height)
|
| 69 |
factor = math.ceil(min(width, height) * factor / 64) * 64 / min(width, height)
|