Spaces:
Runtime error
Runtime error
RamAnanth1
commited on
Commit
·
9442f34
1
Parent(s):
d6f7fe8
Update dataset/hf_dataset.py
Browse files- dataset/hf_dataset.py +3 -4
dataset/hf_dataset.py
CHANGED
@@ -6,9 +6,8 @@ class HFDataset(ABC):
|
|
6 |
"""
|
7 |
Create a dataset to save the transcripts from Youtube.
|
8 |
"""
|
9 |
-
def __init__(self, name
|
10 |
self.name = name
|
11 |
-
self.token = token # HuggingFace Token
|
12 |
if name != "":
|
13 |
self._init_dataset()
|
14 |
else:
|
@@ -36,5 +35,5 @@ class HFDataset(ABC):
|
|
36 |
self.is_empty = True
|
37 |
pass
|
38 |
|
39 |
-
def upload(self):
|
40 |
-
self.dataset.push_to_hub(self.name, token =
|
|
|
6 |
"""
|
7 |
Create a dataset to save the transcripts from Youtube.
|
8 |
"""
|
9 |
+
def __init__(self, name) -> None:
|
10 |
self.name = name
|
|
|
11 |
if name != "":
|
12 |
self._init_dataset()
|
13 |
else:
|
|
|
35 |
self.is_empty = True
|
36 |
pass
|
37 |
|
38 |
+
def upload(self, token):
|
39 |
+
self.dataset.push_to_hub(self.name, token = token)
|