multimodalart HF staff commited on
Commit
29282b8
1 Parent(s): 3c1793b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -32,7 +32,7 @@ pipe = StableDiffusion3Pipeline.from_pretrained(
32
  model_path,
33
  transformer=transformer,
34
  torch_dtype=torch.bfloat16
35
- ).to("cuda")
36
 
37
  pipe.init_ipadapter(
38
  ip_adapter_path=ipadapter_path,
@@ -58,6 +58,7 @@ def process_image(
58
  height,
59
  progress=gr.Progress(track_tqdm=True),
60
  ):
 
61
  if randomize_seed:
62
  seed = random.randint(0, MAX_SEED)
63
 
 
32
  model_path,
33
  transformer=transformer,
34
  torch_dtype=torch.bfloat16
35
+ )
36
 
37
  pipe.init_ipadapter(
38
  ip_adapter_path=ipadapter_path,
 
58
  height,
59
  progress=gr.Progress(track_tqdm=True),
60
  ):
61
+ pipe.to("cuda")
62
  if randomize_seed:
63
  seed = random.randint(0, MAX_SEED)
64