tttoaster commited on
Commit
7db361a
1 Parent(s): 070a748

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -187,7 +187,7 @@ class LLMService:
187
 
188
  model_id_or_path = "stablediffusionapi/realistic-vision-v51"
189
  self.vae_pipe = StableDiffusionImg2ImgPipeline.from_pretrained(model_id_or_path, torch_dtype=torch.float16)
190
- self.vae_pipe = pipe.to(self.vit_sd_device)
191
 
192
  self.boi_token_id = self.tokenizer.encode(BOI_TOKEN, add_special_tokens=False)[0]
193
  self.eoi_token_id = self.tokenizer.encode(EOI_TOKEN, add_special_tokens=False)[0]
 
187
 
188
  model_id_or_path = "stablediffusionapi/realistic-vision-v51"
189
  self.vae_pipe = StableDiffusionImg2ImgPipeline.from_pretrained(model_id_or_path, torch_dtype=torch.float16)
190
+ self.vae_pipe = self.vae_pipe.to(self.vit_sd_device)
191
 
192
  self.boi_token_id = self.tokenizer.encode(BOI_TOKEN, add_special_tokens=False)[0]
193
  self.eoi_token_id = self.tokenizer.encode(EOI_TOKEN, add_special_tokens=False)[0]