Spaces:
Sleeping
Sleeping
Update processor.py
Browse files- processor.py +2 -2
processor.py
CHANGED
|
@@ -14,7 +14,7 @@ class DatasetCommandCenter:
|
|
| 14 |
def __init__(self, token=None):
|
| 15 |
self.token = token
|
| 16 |
self.api = HfApi(token=token)
|
| 17 |
-
self.username=self.api.whoami()
|
| 18 |
print("######################################")
|
| 19 |
print(self.username)
|
| 20 |
print("######################################")
|
|
@@ -394,7 +394,7 @@ The following operations were applied to the source data:
|
|
| 394 |
try:
|
| 395 |
# 1. Process & Push
|
| 396 |
new_dataset = datasets.Dataset.from_generator(gen)
|
| 397 |
-
new_dataset.push_to_hub(target_id, token=self.token)
|
| 398 |
|
| 399 |
# 2. Card
|
| 400 |
try:
|
|
|
|
| 14 |
def __init__(self, token=None):
|
| 15 |
self.token = token
|
| 16 |
self.api = HfApi(token=token)
|
| 17 |
+
self.username=self.api.whoami()[name]
|
| 18 |
print("######################################")
|
| 19 |
print(self.username)
|
| 20 |
print("######################################")
|
|
|
|
| 394 |
try:
|
| 395 |
# 1. Process & Push
|
| 396 |
new_dataset = datasets.Dataset.from_generator(gen)
|
| 397 |
+
new_dataset.push_to_hub(f'{self.username}/{target_id}', token=self.token)
|
| 398 |
|
| 399 |
# 2. Card
|
| 400 |
try:
|