dezzman commited on
Commit
3ca8699
·
verified ·
1 Parent(s): 077767b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -88,10 +88,10 @@ def infer(
88
  if model_id != model_id_default:
89
  pipe = DiffusionPipeline.from_pretrained(model_id, torch_dtype=torch_dtype)
90
  pipe = pipe.to(device)
91
- pipe.fuse_lora(lora_scale=0.4)
92
  image = pipe(**params).images[0]
93
  else:
94
- pipe_default.fuse_lora(lora_scale=0.4)
95
  image = pipe_default(**params).images[0]
96
 
97
  return image
@@ -171,7 +171,7 @@ with gr.Blocks(css=css) as demo:
171
  minimum=256,
172
  maximum=MAX_IMAGE_SIZE,
173
  step=32,
174
- value=1024,
175
  )
176
 
177
  with gr.Row():
@@ -180,7 +180,7 @@ with gr.Blocks(css=css) as demo:
180
  minimum=256,
181
  maximum=MAX_IMAGE_SIZE,
182
  step=32,
183
- value=1024,
184
  )
185
 
186
  run_button = gr.Button("Run", scale=1, variant="primary")
 
88
  if model_id != model_id_default:
89
  pipe = DiffusionPipeline.from_pretrained(model_id, torch_dtype=torch_dtype)
90
  pipe = pipe.to(device)
91
+ pipe.fuse_lora(lora_scale=lora_scale)
92
  image = pipe(**params).images[0]
93
  else:
94
+ pipe_default.fuse_lora(lora_scale=lora_scale)
95
  image = pipe_default(**params).images[0]
96
 
97
  return image
 
171
  minimum=256,
172
  maximum=MAX_IMAGE_SIZE,
173
  step=32,
174
+ value=512,
175
  )
176
 
177
  with gr.Row():
 
180
  minimum=256,
181
  maximum=MAX_IMAGE_SIZE,
182
  step=32,
183
+ value=512,
184
  )
185
 
186
  run_button = gr.Button("Run", scale=1, variant="primary")