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