Update main.py
Browse files
main.py
CHANGED
|
@@ -9,6 +9,11 @@ from tensorflow.keras.preprocessing.sequence import pad_sequences
|
|
| 9 |
from tensorflow.keras.preprocessing.text import Tokenizer
|
| 10 |
from tensorflow.keras.utils import to_categorical
|
| 11 |
from tensorflow import keras
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
sentences = [
|
| 13 |
'Life is so beautiful',
|
| 14 |
'Hope keeps us going',
|
|
|
|
| 9 |
from tensorflow.keras.preprocessing.text import Tokenizer
|
| 10 |
from tensorflow.keras.utils import to_categorical
|
| 11 |
from tensorflow import keras
|
| 12 |
+
from datasets import load_dataset
|
| 13 |
+
|
| 14 |
+
# Login using e.g. `huggingface-cli login` to access this dataset
|
| 15 |
+
ds = load_dataset("GeneralReasoning/GeneralThought-323K")
|
| 16 |
+
|
| 17 |
sentences = [
|
| 18 |
'Life is so beautiful',
|
| 19 |
'Hope keeps us going',
|