Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ def resize_img(image, max_size=1024):
|
|
45 |
return image.resize((new_width, new_height), Image.LANCZOS)
|
46 |
|
47 |
def check_style(stylezation, enable_hyper_flux):
|
48 |
-
if stylezation:
|
49 |
return 0.9, 0.5, 0, 6, 28, 28, False
|
50 |
else:
|
51 |
if enable_hyper_flux:
|
@@ -143,8 +143,8 @@ based on the implementations of [@raven38](https://github.com/raven38) & [@DarkM
|
|
143 |
placeholder="describe the edited output",
|
144 |
)
|
145 |
with gr.Row():
|
146 |
-
enable_hyper_flux = gr.Checkbox(label="8-step LoRA", value=False, info="may reduce edit quality")
|
147 |
-
stylezation = gr.
|
148 |
with gr.Row():
|
149 |
start_timestep = gr.Slider(
|
150 |
label="start timestep",
|
|
|
45 |
return image.resize((new_width, new_height), Image.LANCZOS)
|
46 |
|
47 |
def check_style(stylezation, enable_hyper_flux):
|
48 |
+
if stylezation == "text/image guided stylzation":
|
49 |
return 0.9, 0.5, 0, 6, 28, 28, False
|
50 |
else:
|
51 |
if enable_hyper_flux:
|
|
|
143 |
placeholder="describe the edited output",
|
144 |
)
|
145 |
with gr.Row():
|
146 |
+
enable_hyper_flux = gr.Checkbox(label="8-step LoRA", value=False, info="may reduce edit quality", visible=False)
|
147 |
+
stylezation = gr.Radio(["local subject edits", "text/image guided stylzation"], label="edit type", info="")
|
148 |
with gr.Row():
|
149 |
start_timestep = gr.Slider(
|
150 |
label="start timestep",
|