cuda enabled
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ base = DiffusionPipeline.from_pretrained(
|
|
11 |
torch_dtype=torch.float16,
|
12 |
use_safetensors=True
|
13 |
)
|
14 |
-
|
15 |
|
16 |
def text2Image(prompt, steps=50, scale=7, Width=1024, Height=1024):
|
17 |
image = base(prompt, num_inference_steps=steps, guidance_scale=scale,
|
|
|
11 |
torch_dtype=torch.float16,
|
12 |
use_safetensors=True
|
13 |
)
|
14 |
+
base.to("cuda")
|
15 |
|
16 |
def text2Image(prompt, steps=50, scale=7, Width=1024, Height=1024):
|
17 |
image = base(prompt, num_inference_steps=steps, guidance_scale=scale,
|