metek7 commited on
Commit
e6f4776
·
verified ·
1 Parent(s): 9632777

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -7,8 +7,10 @@ import random
7
 
8
  use_auth_token=True
9
 
 
10
  from huggingface_hub import login
11
- login(token="your_access_token")
 
12
 
13
  torch.backends.cudnn.deterministic = True
14
  torch.backends.cudnn.benchmark = False
 
7
 
8
  use_auth_token=True
9
 
10
+ import os
11
  from huggingface_hub import login
12
+
13
+ login(token=os.getenv("HF_TOKEN"))
14
 
15
  torch.backends.cudnn.deterministic = True
16
  torch.backends.cudnn.benchmark = False