andy-fang commited on
Commit
bc24410
·
1 Parent(s): 68a2964

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -7,6 +7,7 @@ auth_token = os.environ.get("AUTH_TOKEN") or True
7
  device = "cuda" if torch.cuda.is_available() else "cpu"
8
  pipe = StableDiffusionPipeline.from_pretrained(
9
  "sd-dreambooth-library/andy-simulator-v2",
 
10
  use_auth_token=auth_token,
11
  ).to(device)
12
 
 
7
  device = "cuda" if torch.cuda.is_available() else "cpu"
8
  pipe = StableDiffusionPipeline.from_pretrained(
9
  "sd-dreambooth-library/andy-simulator-v2",
10
+ torch_dtype=torch.float32,
11
  use_auth_token=auth_token,
12
  ).to(device)
13