Spaces:
vilarin
/
Running on Zero

vilarin commited on
Commit
7e592f3
·
verified ·
1 Parent(s): 4595224

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -64,7 +64,7 @@ tokenizer_3 = T5TokenizerFast.from_pretrained(
64
  # Ensure model and scheduler are initialized in GPU-enabled function
65
  if torch.cuda.is_available():
66
  pipe = StableDiffusion3Pipeline.from_pretrained(repo, vae=vae, transformer=transformer, tokenizer_3=tokenizer_3, text_encoder_3=text_encoder_3, torch_dtype=torch.float16).to("cuda")
67
- pipe2 = StableDiffusion3Img2ImgPipeline.from_pretrained(repo, vae=vae, transformer=transformer, tokenizer_3=tokenizer_3, text_encoder_3=text_encoder_3, torch_dtype=torch.float16).to("cuda")
68
 
69
  pipe.scheduler = FlowMatchEulerDiscreteScheduler.from_config(pipe.scheduler.config)
70
  pipe2.scheduler = FlowMatchEulerDiscreteScheduler.from_config(pipe.scheduler.config)
 
64
  # Ensure model and scheduler are initialized in GPU-enabled function
65
  if torch.cuda.is_available():
66
  pipe = StableDiffusion3Pipeline.from_pretrained(repo, vae=vae, transformer=transformer, tokenizer_3=tokenizer_3, text_encoder_3=text_encoder_3, torch_dtype=torch.float16).to("cuda")
67
+ pipe2 = StableDiffusion3Img2ImgPipeline.from_pretrained(repo, vae=vae, transformer=transformer, tokenizer=tokenizer_3, text_encoder=text_encoder_3, torch_dtype=torch.float16).to("cuda")
68
 
69
  pipe.scheduler = FlowMatchEulerDiscreteScheduler.from_config(pipe.scheduler.config)
70
  pipe2.scheduler = FlowMatchEulerDiscreteScheduler.from_config(pipe.scheduler.config)