Spaces:
Build error
Build error
Update app.py
Browse files
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 =
|
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]
|