backup
Browse files
app.py
CHANGED
|
@@ -12,10 +12,12 @@ from datasets import Dataset, Features, Value, Sequence, Image as ImageFeature
|
|
| 12 |
import threading
|
| 13 |
import time
|
| 14 |
from utils import process_and_push_dataset
|
|
|
|
|
|
|
| 15 |
|
| 16 |
-
api = HfApi(token=os.environ["HF_TOKEN"])
|
| 17 |
# login to huggingface
|
| 18 |
-
api
|
|
|
|
| 19 |
|
| 20 |
DATASET_REPO = "taesiri/ZB"
|
| 21 |
FINAL_REPO = "taesiri/DatasetOfHardQuestions5"
|
|
|
|
| 12 |
import threading
|
| 13 |
import time
|
| 14 |
from utils import process_and_push_dataset
|
| 15 |
+
from huggingface_hub import login
|
| 16 |
+
|
| 17 |
|
|
|
|
| 18 |
# login to huggingface
|
| 19 |
+
api = HfApi(token=os.environ["HF_TOKEN"])
|
| 20 |
+
login(token=os.environ["HF_TOKEN"])
|
| 21 |
|
| 22 |
DATASET_REPO = "taesiri/ZB"
|
| 23 |
FINAL_REPO = "taesiri/DatasetOfHardQuestions5"
|