jn1xia commited on
Commit
ff86e54
·
verified ·
1 Parent(s): 8be2baf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -25,7 +25,11 @@ def display_example_image(url):
25
 
26
  #function to generate AI based images using Huggingface Diffusers
27
  def generate_images_using_huggingface_diffusers(text):
28
- pipe = StableDiffusionPipeline.from_pretrained("sd-dreambooth-library/cat-toy", torch_dtype=torch.float32)
 
 
 
 
29
  # pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", torch_dtype=torch.float32)
30
  # pipe = pipe.to("cuda")
31
  pipe = pipe.to(accelerator.device)
 
25
 
26
  #function to generate AI based images using Huggingface Diffusers
27
  def generate_images_using_huggingface_diffusers(text):
28
+
29
+ from diffusers import DiffusionPipeline
30
+
31
+ pipe = DiffusionPipeline.from_pretrained("sd-legacy/stable-diffusion-v1-5")
32
+ pipe.load_lora_weights("maria26/Floor_Plan_LoRA")
33
  # pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", torch_dtype=torch.float32)
34
  # pipe = pipe.to("cuda")
35
  pipe = pipe.to(accelerator.device)