Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import math
|
2 |
import time
|
3 |
from threading import Lock
|
|
|
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 |
+
|
10 |
import math
|
11 |
import time
|
12 |
from threading import Lock
|