thak123 commited on
Commit
12ab485
·
verified ·
1 Parent(s): f5fba1f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ from punctuators.models import SBDModelONNX
9
  # This will download the ONNX and SPE models. To clean up, delete this model from your HF cache directory.
10
  m = SBDModelONNX.from_pretrained("sbd_multi_lang")
11
 
12
- def sentence_boundary_detection(name):
13
  # Run inference
14
  results: List[List[str]] = m.infer(input_texts)
15
  return "\n".join(results), len(results)
 
9
  # This will download the ONNX and SPE models. To clean up, delete this model from your HF cache directory.
10
  m = SBDModelONNX.from_pretrained("sbd_multi_lang")
11
 
12
+ def sentence_boundary_detection(input_texts):
13
  # Run inference
14
  results: List[List[str]] = m.infer(input_texts)
15
  return "\n".join(results), len(results)