Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -56,7 +56,8 @@ def generate(slider_x, prompt, seed, recalc_directions, iterations, steps, guida
|
|
56 |
image = clip_slider.generate(prompt, guidance_scale=guidance_scale, scale=0, scale_2nd=0, seed=seed, num_inference_steps=steps, avg_diff=avg_diff)
|
57 |
|
58 |
|
59 |
-
comma_concepts_x = ', '.join(slider_x)
|
|
|
60 |
|
61 |
avg_diff_x = avg_diff.cpu()
|
62 |
|
@@ -154,7 +155,7 @@ with gr.Blocks(css=css) as demo:
|
|
154 |
# generate_butt = gr.Button("generate")
|
155 |
|
156 |
with gr.Accordion(label="advanced options", open=False):
|
157 |
-
iterations = gr.Slider(label = "num iterations", minimum=0, value=
|
158 |
steps = gr.Slider(label = "num inference steps", minimum=1, value=4, maximum=10)
|
159 |
guidance_scale = gr.Slider(
|
160 |
label="Guidance scale",
|
|
|
56 |
image = clip_slider.generate(prompt, guidance_scale=guidance_scale, scale=0, scale_2nd=0, seed=seed, num_inference_steps=steps, avg_diff=avg_diff)
|
57 |
|
58 |
|
59 |
+
#comma_concepts_x = ', '.join(slider_x)
|
60 |
+
comma_concepts_x = f"{slider_x[1]}, {slider_x[0]}"
|
61 |
|
62 |
avg_diff_x = avg_diff.cpu()
|
63 |
|
|
|
155 |
# generate_butt = gr.Button("generate")
|
156 |
|
157 |
with gr.Accordion(label="advanced options", open=False):
|
158 |
+
iterations = gr.Slider(label = "num iterations", minimum=0, value=200, maximum=400)
|
159 |
steps = gr.Slider(label = "num inference steps", minimum=1, value=4, maximum=10)
|
160 |
guidance_scale = gr.Slider(
|
161 |
label="Guidance scale",
|