Spaces:
Runtime error
Runtime error
Update test.py
Browse files
test.py
CHANGED
@@ -89,8 +89,10 @@ def bert_encode(data):
|
|
89 |
|
90 |
|
91 |
def test_predict(text):
|
|
|
|
|
92 |
|
93 |
-
test_encoded = bert_encode(text)
|
94 |
test_dataset = (
|
95 |
tf.data.Dataset
|
96 |
.from_tensor_slices((test_encoded))
|
|
|
89 |
|
90 |
|
91 |
def test_predict(text):
|
92 |
+
|
93 |
+
text = clean_text(text)
|
94 |
|
95 |
+
test_encoded = bert_encode([text])
|
96 |
test_dataset = (
|
97 |
tf.data.Dataset
|
98 |
.from_tensor_slices((test_encoded))
|