tetrisd commited on
Commit
d961e81
Β·
1 Parent(s): 4795d9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -1,11 +1,9 @@
1
- from huggingface_hub import HfApi, HfFolder
2
  import os
3
 
4
- api = HfApi()
5
  api.set_access_token(os.environ['HF_SECRET'])
6
 
7
- folder = HfFolder()
8
- folder.save_token(os.environ['HF_SECRET'])
9
  import math
10
  import time
11
  from threading import Lock
 
1
+ from huggingface_hub import HfApi
2
  import os
3
 
4
+ api = HfApi(token=os.environ['HF_SECRET'])
5
  api.set_access_token(os.environ['HF_SECRET'])
6
 
 
 
7
  import math
8
  import time
9
  from threading import Lock