Update app.py
Browse files
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(
|
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)
|