Spaces:
Build error
Build error
freemt
commited on
Commit
•
8d76292
1
Parent(s):
7f331da
Update value for text1, text1 and thresh
Browse files- ubee/__main__.py +7 -7
ubee/__main__.py
CHANGED
@@ -95,13 +95,13 @@ def ifn(
|
|
95 |
pd.DataFrame
|
96 |
"""
|
97 |
# global text1, text2, thresh
|
98 |
-
ic(text1
|
99 |
-
ic(text2
|
100 |
-
ic(type(text1
|
101 |
-
ic(type(text2
|
102 |
|
103 |
-
res1 = [elm.strip() for elm in text1.
|
104 |
-
res2 = [elm.strip() for elm in text2.
|
105 |
|
106 |
ic(res1)
|
107 |
ic(res2)
|
@@ -109,7 +109,7 @@ def ifn(
|
|
109 |
# _ = pd.DataFrame(zip_longest(res1, res2), columns=["text1", "text2"])
|
110 |
# return _
|
111 |
|
112 |
-
res1_, res2_ = ubee(res1, res2, thresh
|
113 |
|
114 |
out_df = pd.DataFrame(
|
115 |
zip_longest(res1, res2),
|
|
|
95 |
pd.DataFrame
|
96 |
"""
|
97 |
# global text1, text2, thresh
|
98 |
+
ic(text1)
|
99 |
+
ic(text2)
|
100 |
+
ic(type(text1))
|
101 |
+
ic(type(text2))
|
102 |
|
103 |
+
res1 = [elm.strip() for elm in text1.splitlines() if elm.strip()]
|
104 |
+
res2 = [elm.strip() for elm in text2.splitlines() if elm.strip()]
|
105 |
|
106 |
ic(res1)
|
107 |
ic(res2)
|
|
|
109 |
# _ = pd.DataFrame(zip_longest(res1, res2), columns=["text1", "text2"])
|
110 |
# return _
|
111 |
|
112 |
+
res1_, res2_ = ubee(res1, res2, thresh)
|
113 |
|
114 |
out_df = pd.DataFrame(
|
115 |
zip_longest(res1, res2),
|