Culda commited on
Commit
89da14a
1 Parent(s): 63f3c1a
Files changed (2) hide show
  1. app.py +2 -0
  2. requirements.txt +1 -0
app.py CHANGED
@@ -9,6 +9,8 @@ from controlnet_aux import CannyDetector
9
 
10
  # login hf token
11
  HF_TOKEN = os.getenv("HF_TOKEN")
 
 
12
 
13
  dtype = torch.bfloat16
14
  device = "cuda" if torch.cuda.is_available() else "cpu"
 
9
 
10
  # login hf token
11
  HF_TOKEN = os.getenv("HF_TOKEN")
12
+ from huggingface_hub import login
13
+ login()
14
 
15
  dtype = torch.bfloat16
16
  device = "cuda" if torch.cuda.is_available() else "cpu"
requirements.txt CHANGED
@@ -7,3 +7,4 @@ gradio
7
  sentencepiece
8
  tokenizers
9
  spaces
 
 
7
  sentencepiece
8
  tokenizers
9
  spaces
10
+ huggingface_hub