SergioMtz commited on
Commit
2aff23c
1 Parent(s): ab9ad12

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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]