Spaces:
Runtime error
Runtime error
freemt
commited on
Commit
·
e0fded8
1
Parent(s):
3890ec5
Update dev split_to_sents
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def greet(name):
|
|
25 |
def ml_fn(
|
26 |
text1: str,
|
27 |
text2: str,
|
28 |
-
|
29 |
) -> pd.DataFrame:
|
30 |
"""Align text1 text2"""
|
31 |
text1 = str(text1)
|
@@ -75,7 +75,7 @@ mlbee = gr.Interface(
|
|
75 |
examples=[
|
76 |
# ["a b", "cd", False],
|
77 |
# [text1, text2, False],
|
78 |
-
[text1, text2],
|
79 |
]
|
80 |
)
|
81 |
|
|
|
25 |
def ml_fn(
|
26 |
text1: str,
|
27 |
text2: str,
|
28 |
+
split_to_sents: bool = False
|
29 |
) -> pd.DataFrame:
|
30 |
"""Align text1 text2"""
|
31 |
text1 = str(text1)
|
|
|
75 |
examples=[
|
76 |
# ["a b", "cd", False],
|
77 |
# [text1, text2, False],
|
78 |
+
[text1[:len(text1//2], text2[:len(text2//2], False],
|
79 |
]
|
80 |
)
|
81 |
|