2MaxM commited on
Commit
6148334
·
verified ·
1 Parent(s): f1759ae
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -7,8 +7,6 @@ import rembg
7
  pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16, use_safetensors=True, variant="fp16")
8
  pipe.to("cuda")
9
 
10
- pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
11
-
12
  # Function to generate an image from text using diffusion
13
  @spaces.GPU
14
  def generate_image(prompt):
 
7
  pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16, use_safetensors=True, variant="fp16")
8
  pipe.to("cuda")
9
 
 
 
10
  # Function to generate an image from text using diffusion
11
  @spaces.GPU
12
  def generate_image(prompt):