jn1xia commited on
Commit
e42b13b
·
verified ·
1 Parent(s): b3cd8a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -25,8 +25,8 @@ 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.float16)
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)
32
  prompt = text
 
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.float16)
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)
32
  prompt = text