khfjkqf
Browse files
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):
|