Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,7 +38,7 @@ with open('loras.json', 'r') as f:
|
|
| 38 |
|
| 39 |
# Initialize the base model
|
| 40 |
#base_model = "stabilityai/stable-diffusion-3.5-large"
|
| 41 |
-
pipe = AutoPipelineForText2Image.from_pretrained("
|
| 42 |
|
| 43 |
clipmodel = 'norm'
|
| 44 |
if clipmodel == "long":
|
|
@@ -196,7 +196,7 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css) as app:
|
|
| 196 |
with gr.Accordion("Advanced Settings", open=True):
|
| 197 |
with gr.Column():
|
| 198 |
with gr.Row():
|
| 199 |
-
cfg_scale = gr.Slider(label="CFG Scale", minimum=0, maximum=20, step=.1, value=1.
|
| 200 |
steps = gr.Slider(label="Steps", minimum=1, maximum=50, step=1, value=7)
|
| 201 |
|
| 202 |
with gr.Row():
|
|
|
|
| 38 |
|
| 39 |
# Initialize the base model
|
| 40 |
#base_model = "stabilityai/stable-diffusion-3.5-large"
|
| 41 |
+
pipe = AutoPipelineForText2Image.from_pretrained("stabilityai/stable-diffusion-3.5-large-turbo", torch_dtype=torch.bfloat16)
|
| 42 |
|
| 43 |
clipmodel = 'norm'
|
| 44 |
if clipmodel == "long":
|
|
|
|
| 196 |
with gr.Accordion("Advanced Settings", open=True):
|
| 197 |
with gr.Column():
|
| 198 |
with gr.Row():
|
| 199 |
+
cfg_scale = gr.Slider(label="CFG Scale", minimum=0, maximum=20, step=.1, value=1.0)
|
| 200 |
steps = gr.Slider(label="Steps", minimum=1, maximum=50, step=1, value=7)
|
| 201 |
|
| 202 |
with gr.Row():
|