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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -32,7 +32,7 @@ pipe = StableDiffusion3Pipeline.from_pretrained(
32
  model_path,
33
  transformer=transformer,
34
  torch_dtype=torch.bfloat16
35
- )
36
 
37
  pipe.init_ipadapter(
38
  ip_adapter_path=ipadapter_path,
@@ -58,7 +58,7 @@ def process_image(
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
 
 
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
  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