AbdulBasit2007 commited on
Commit
342fc19
1 Parent(s): ecece27

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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("cuda:0")
 
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])