Spaces:
Build error
Build error
freemt
commited on
Commit
·
5fb870c
1
Parent(s):
5ae3f92
Update texts :10
Browse files- ubee/__main__.py +11 -3
- ubee/uclas.py +1 -1
ubee/__main__.py
CHANGED
|
@@ -54,6 +54,9 @@ def greet(
|
|
| 54 |
res1 = [elm.strip() for elm in text1.splitlines() if elm.strip()]
|
| 55 |
res2 = [elm.strip() for elm in text2.splitlines() if elm.strip()]
|
| 56 |
|
|
|
|
|
|
|
|
|
|
| 57 |
# _ = pd.DataFrame(zip_longest(res1, res2), columns=["text1", "text2"])
|
| 58 |
# return _
|
| 59 |
|
|
@@ -73,11 +76,13 @@ def main():
|
|
| 73 |
for elm in Path("data/test_en.txt").read_text("utf8").splitlines()
|
| 74 |
if elm.strip()
|
| 75 |
]
|
| 76 |
-
|
| 77 |
-
|
|
|
|
| 78 |
|
| 79 |
title = "Ultimatumbee Aligner"
|
| 80 |
theme = "dark-grass"
|
|
|
|
| 81 |
description = """WIP showcasing a novel aligner"""
|
| 82 |
article = dedent("""
|
| 83 |
## NB
|
|
@@ -157,9 +162,12 @@ def main():
|
|
| 157 |
inputs=inputs,
|
| 158 |
outputs=outputs,
|
| 159 |
examples=examples,
|
|
|
|
|
|
|
|
|
|
| 160 |
enable_queue=True,
|
|
|
|
| 161 |
)
|
| 162 |
-
iface.launch(enable_queue=True)
|
| 163 |
|
| 164 |
|
| 165 |
if __name__ == "__main__":
|
|
|
|
| 54 |
res1 = [elm.strip() for elm in text1.splitlines() if elm.strip()]
|
| 55 |
res2 = [elm.strip() for elm in text2.splitlines() if elm.strip()]
|
| 56 |
|
| 57 |
+
ic(res1)
|
| 58 |
+
ic(res2)
|
| 59 |
+
|
| 60 |
# _ = pd.DataFrame(zip_longest(res1, res2), columns=["text1", "text2"])
|
| 61 |
# return _
|
| 62 |
|
|
|
|
| 76 |
for elm in Path("data/test_en.txt").read_text("utf8").splitlines()
|
| 77 |
if elm.strip()
|
| 78 |
]
|
| 79 |
+
_ = text_en[:9]
|
| 80 |
+
shuffle(_)
|
| 81 |
+
text_en = "\n\n".join(_)
|
| 82 |
|
| 83 |
title = "Ultimatumbee Aligner"
|
| 84 |
theme = "dark-grass"
|
| 85 |
+
theme = "grass"
|
| 86 |
description = """WIP showcasing a novel aligner"""
|
| 87 |
article = dedent("""
|
| 88 |
## NB
|
|
|
|
| 162 |
inputs=inputs,
|
| 163 |
outputs=outputs,
|
| 164 |
examples=examples,
|
| 165 |
+
# enable_queue=True,
|
| 166 |
+
)
|
| 167 |
+
iface.launch(
|
| 168 |
enable_queue=True,
|
| 169 |
+
share=True,
|
| 170 |
)
|
|
|
|
| 171 |
|
| 172 |
|
| 173 |
if __name__ == "__main__":
|
ubee/uclas.py
CHANGED
|
@@ -13,7 +13,7 @@ from model_pool.load_model import load_model # pylint: disable=import-error
|
|
| 13 |
import logzero
|
| 14 |
from logzero import logger
|
| 15 |
|
| 16 |
-
logzero.loglevel(
|
| 17 |
|
| 18 |
fetch_check_aux("/home/user")
|
| 19 |
model_s = load_model_s()
|
|
|
|
| 13 |
import logzero
|
| 14 |
from logzero import logger
|
| 15 |
|
| 16 |
+
logzero.loglevel(20)
|
| 17 |
|
| 18 |
fetch_check_aux("/home/user")
|
| 19 |
model_s = load_model_s()
|