Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -183,7 +183,7 @@ def infer_example(input_image_path, prompt, lora_adapter):
|
|
| 183 |
# Calculate aspect ratio for the example image
|
| 184 |
width, height = update_dimensions_on_upload(input_pil)
|
| 185 |
# Set reasonable default values for example inference
|
| 186 |
-
guidance_scale =
|
| 187 |
steps = 4
|
| 188 |
# Call the main infer function
|
| 189 |
result, seed = infer(input_pil, prompt, lora_adapter, 0, True, guidance_scale, steps, width, height)
|
|
@@ -224,7 +224,7 @@ with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
|
|
| 224 |
with gr.Accordion("⚙️ Advanced Settings", open=False):
|
| 225 |
seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0)
|
| 226 |
randomize_seed = gr.Checkbox(label="Randomize Seed", value=True)
|
| 227 |
-
guidance_scale = gr.Slider(label="Guidance Scale", minimum=1.0, maximum=10.0, step=0.1, value=
|
| 228 |
steps = gr.Slider(label="Inference Steps", minimum=1, maximum=50, step=1, value=4)
|
| 229 |
# Hidden sliders to hold image dimensions
|
| 230 |
height = gr.Slider(label="Height", minimum=256, maximum=1024, step=8, value=1024, visible=False)
|
|
|
|
| 183 |
# Calculate aspect ratio for the example image
|
| 184 |
width, height = update_dimensions_on_upload(input_pil)
|
| 185 |
# Set reasonable default values for example inference
|
| 186 |
+
guidance_scale = 1.0
|
| 187 |
steps = 4
|
| 188 |
# Call the main infer function
|
| 189 |
result, seed = infer(input_pil, prompt, lora_adapter, 0, True, guidance_scale, steps, width, height)
|
|
|
|
| 224 |
with gr.Accordion("⚙️ Advanced Settings", open=False):
|
| 225 |
seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0)
|
| 226 |
randomize_seed = gr.Checkbox(label="Randomize Seed", value=True)
|
| 227 |
+
guidance_scale = gr.Slider(label="Guidance Scale", minimum=1.0, maximum=10.0, step=0.1, value=1.0)
|
| 228 |
steps = gr.Slider(label="Inference Steps", minimum=1, maximum=50, step=1, value=4)
|
| 229 |
# Hidden sliders to hold image dimensions
|
| 230 |
height = gr.Slider(label="Height", minimum=256, maximum=1024, step=8, value=1024, visible=False)
|