Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -40,6 +40,7 @@ ckpt.restore("ckpt-10")
|
|
40 |
print("Checkpoint Restaurado")
|
41 |
|
42 |
def evaluate(sentence):
|
|
|
43 |
ragged = tokenizer.tokenize([sentence])
|
44 |
ragged = trimer.trim([ragged])[0]
|
45 |
count = ragged.bounding_shape()[0]
|
|
|
40 |
print("Checkpoint Restaurado")
|
41 |
|
42 |
def evaluate(sentence):
|
43 |
+
sentence = str(sentence)
|
44 |
ragged = tokenizer.tokenize([sentence])
|
45 |
ragged = trimer.trim([ragged])[0]
|
46 |
count = ragged.bounding_shape()[0]
|