Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -76,9 +76,10 @@ NUM_IMAGES_PER_PROMPT = 1
|
|
| 76 |
|
| 77 |
pipe = PixArtAlphaPipeline.from_pretrained(
|
| 78 |
"PixArt-alpha/PixArt-LCM-XL-2-1024-MS",
|
| 79 |
-
torch_dtype=torch.float16,
|
| 80 |
use_safetensors=True,
|
| 81 |
-
).to("
|
|
|
|
| 82 |
|
| 83 |
def apply_style(style_name: str, positive: str, negative: str = "") -> Tuple[str, str]:
|
| 84 |
p, n = styles.get(style_name, styles[DEFAULT_STYLE_NAME])
|
|
|
|
| 76 |
|
| 77 |
pipe = PixArtAlphaPipeline.from_pretrained(
|
| 78 |
"PixArt-alpha/PixArt-LCM-XL-2-1024-MS",
|
| 79 |
+
torch_dtype=torch.float16,
|
| 80 |
use_safetensors=True,
|
| 81 |
+
).to("cpu")
|
| 82 |
+
|
| 83 |
|
| 84 |
def apply_style(style_name: str, positive: str, negative: str = "") -> Tuple[str, str]:
|
| 85 |
p, n = styles.get(style_name, styles[DEFAULT_STYLE_NAME])
|