Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ def bert_tokenize(text, preprocessor):
|
|
44 |
if not isinstance(text, str): text = str(text)
|
45 |
|
46 |
# Ejecutar el preprocesador
|
47 |
-
out
|
48 |
|
49 |
# Extraer y procesar IDs y máscaras
|
50 |
ids = out['input_word_ids'].numpy().astype(np.int32)
|
|
|
44 |
if not isinstance(text, str): text = str(text)
|
45 |
|
46 |
# Ejecutar el preprocesador
|
47 |
+
out = preprocessor(tf.constant([text.lower()]))
|
48 |
|
49 |
# Extraer y procesar IDs y máscaras
|
50 |
ids = out['input_word_ids'].numpy().astype(np.int32)
|