Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ with open('loras.json', 'r') as f:
|
|
| 14 |
loras = json.load(f)
|
| 15 |
|
| 16 |
# Initialize the base model
|
| 17 |
-
base_model = "
|
| 18 |
pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
|
| 19 |
|
| 20 |
MAX_SEED = 2**32-1
|
|
@@ -146,7 +146,7 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css) as app:
|
|
| 146 |
with gr.Accordion("Advanced Settings", open=True):
|
| 147 |
with gr.Column():
|
| 148 |
with gr.Row():
|
| 149 |
-
cfg_scale = gr.Slider(label="CFG Scale", minimum=
|
| 150 |
steps = gr.Slider(label="Steps", minimum=1, maximum=50, step=1, value=6)
|
| 151 |
|
| 152 |
with gr.Row():
|
|
@@ -156,7 +156,7 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css) as app:
|
|
| 156 |
with gr.Row():
|
| 157 |
randomize_seed = gr.Checkbox(True, label="Randomize seed")
|
| 158 |
seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0, randomize=True)
|
| 159 |
-
lora_scale = gr.Slider(label="LoRA Scale", minimum=0, maximum=1, step=0.01, value=0.95)
|
| 160 |
|
| 161 |
gallery.select(
|
| 162 |
update_selection,
|
|
|
|
| 14 |
loras = json.load(f)
|
| 15 |
|
| 16 |
# Initialize the base model
|
| 17 |
+
base_model = "AlekseyCalvin/HistoricColorSoonr_Schnell"
|
| 18 |
pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
|
| 19 |
|
| 20 |
MAX_SEED = 2**32-1
|
|
|
|
| 146 |
with gr.Accordion("Advanced Settings", open=True):
|
| 147 |
with gr.Column():
|
| 148 |
with gr.Row():
|
| 149 |
+
cfg_scale = gr.Slider(label="CFG Scale", minimum=0, maximum=20, step=.5, value=1.5)
|
| 150 |
steps = gr.Slider(label="Steps", minimum=1, maximum=50, step=1, value=6)
|
| 151 |
|
| 152 |
with gr.Row():
|
|
|
|
| 156 |
with gr.Row():
|
| 157 |
randomize_seed = gr.Checkbox(True, label="Randomize seed")
|
| 158 |
seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0, randomize=True)
|
| 159 |
+
lora_scale = gr.Slider(label="LoRA Scale", minimum=0, maximum=1.6, step=0.01, value=0.95)
|
| 160 |
|
| 161 |
gallery.select(
|
| 162 |
update_selection,
|