taufiqdp commited on
Commit
c2d68ff
1 Parent(s): 4642328

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -6,6 +6,9 @@ import spaces
6
  from diffusers import AutoPipelineForText2Image
7
  import torch
8
 
 
 
 
9
  device = "cuda" if torch.cuda.is_available() else "cpu"
10
 
11
  if torch.cuda.is_available():
 
6
  from diffusers import AutoPipelineForText2Image
7
  import torch
8
 
9
+ from huggingface_hub import login
10
+ login(os.environ.get("HF_TOKEN"))
11
+
12
  device = "cuda" if torch.cuda.is_available() else "cpu"
13
 
14
  if torch.cuda.is_available():