Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,9 @@
|
|
1 |
-
from huggingface_hub import HfApi
|
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
|