Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -10,6 +10,9 @@ from huggingface_hub import from_pretrained_keras
|
|
10 |
|
11 |
model = from_pretrained_keras("keras-io/text-generation-miniature-gpt")
|
12 |
|
|
|
|
|
|
|
13 |
def tokenize_data(text):
|
14 |
# Tokenize the review body
|
15 |
input_ = str(text) + ' </s>'
|
|
|
10 |
|
11 |
model = from_pretrained_keras("keras-io/text-generation-miniature-gpt")
|
12 |
|
13 |
+
with open('tokenizer.pickle', 'rb') as handle:
|
14 |
+
tokenizer = pickle.load(handle)
|
15 |
+
|
16 |
def tokenize_data(text):
|
17 |
# Tokenize the review body
|
18 |
input_ = str(text) + ' </s>'
|