Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,8 @@ m = SBDModelONNX.from_pretrained("sbd_multi_lang")
|
|
12 |
def sentence_boundary_detection(input_texts):
|
13 |
# Run inference
|
14 |
results: List[List[str]] = m.infer(input_texts)
|
15 |
-
|
|
|
16 |
|
17 |
|
18 |
# Gradio interface
|
|
|
12 |
def sentence_boundary_detection(input_texts):
|
13 |
# Run inference
|
14 |
results: List[List[str]] = m.infer(input_texts)
|
15 |
+
sentences = "\n".join(results)
|
16 |
+
return sentences, len(results)
|
17 |
|
18 |
|
19 |
# Gradio interface
|