1inkusFace commited on
Commit
e582867
·
verified ·
1 Parent(s): 10c7e2c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,6 @@
6
  # copies of the Software, and to permit persons to whom the Software is
7
  import spaces
8
 
9
-
10
  import os
11
  import random
12
  import uuid
@@ -82,6 +81,7 @@ DEFAULT_STYLE_NAME = "Style Zero"
82
  STYLE_NAMES = list(styles.keys())
83
  HF_TOKEN = os.getenv("HF_TOKEN")
84
  os.putenv("HF_HUB_ENABLE_HF_TRANSFER","1")
 
85
 
86
  device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
87
 
 
6
  # copies of the Software, and to permit persons to whom the Software is
7
  import spaces
8
 
 
9
  import os
10
  import random
11
  import uuid
 
81
  STYLE_NAMES = list(styles.keys())
82
  HF_TOKEN = os.getenv("HF_TOKEN")
83
  os.putenv("HF_HUB_ENABLE_HF_TRANSFER","1")
84
+ os.environ["SAFETENSORS_FAST_GPU"] = "1"
85
 
86
  device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
87