Update app.py
Browse files
app.py
CHANGED
@@ -263,7 +263,7 @@ def text_to_kenlm(
|
|
263 |
|
264 |
# Commands to run in the container
|
265 |
cmd = (
|
266 |
-
f"{kenlm_bin}/lmplz --temp_prefix /tmp --memory
|
267 |
)
|
268 |
print(subprocess.run(cmd, shell=True))
|
269 |
|
|
|
263 |
|
264 |
# Commands to run in the container
|
265 |
cmd = (
|
266 |
+
f"{kenlm_bin}/lmplz --temp_prefix /tmp --memory 80% --text {intermediate_file} --arpa /tmp/my_model.arpa -o {_order} --prune {_arpa_prune} --discount_fallback",
|
267 |
)
|
268 |
print(subprocess.run(cmd, shell=True))
|
269 |
|