ford442 commited on
Commit
f9449cf
Β·
1 Parent(s): 450ed32

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -119,7 +119,7 @@ def load_and_prepare_model(model_id):
119
  )
120
  sched = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", algorithm_type="sde-dpmsolver++")
121
  pipe.scheduler=sched
122
- pipe.to(device=device)
123
  return pipe
124
 
125
  # Preload and compile both models
@@ -156,7 +156,7 @@ def generate_60(
156
  prompt: str,
157
  negative_prompt: str = "",
158
  use_negative_prompt: bool = False,
159
- # style_selection: str = DEFAULT_STYLE_NAME,
160
  seed: int = 1,
161
  width: int = 768,
162
  height: int = 768,
@@ -206,7 +206,7 @@ def generate_90(
206
  prompt: str,
207
  negative_prompt: str = "",
208
  use_negative_prompt: bool = False,
209
- # style_selection: str = DEFAULT_STYLE_NAME,
210
  seed: int = 1,
211
  width: int = 768,
212
  height: int = 768,
 
119
  )
120
  sched = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", algorithm_type="sde-dpmsolver++")
121
  pipe.scheduler=sched
122
+ pipe.to(device=device, dtype=torch.bfloat16)
123
  return pipe
124
 
125
  # Preload and compile both models
 
156
  prompt: str,
157
  negative_prompt: str = "",
158
  use_negative_prompt: bool = False,
159
+ style_selection: str = "",
160
  seed: int = 1,
161
  width: int = 768,
162
  height: int = 768,
 
206
  prompt: str,
207
  negative_prompt: str = "",
208
  use_negative_prompt: bool = False,
209
+ style_selection: str = "",
210
  seed: int = 1,
211
  width: int = 768,
212
  height: int = 768,