Spaces:
Sleeping
Sleeping
JJFrancisco
commited on
Commit
•
b20cd0a
1
Parent(s):
a30f996
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ model_dir_gl_en = download_model("proxectonos/Nos_MT-OpenNMT-gl-en", revision="m
|
|
18 |
model_dir_en_gl = download_model("proxectonos/Nos_MT-OpenNMT-en-gl", revision="main")
|
19 |
|
20 |
def translate(input_text):
|
21 |
-
print
|
22 |
command = f"onmt_translate -src {input_text} -model {os.path.join(MODELS_PATH, model_dir_en_gl)}/NOS-MT-OpenNMT-en-gl --output ./output_file.txt --replace_unk"
|
23 |
process = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
24 |
stdout, stderr = process.communicate()
|
|
|
18 |
model_dir_en_gl = download_model("proxectonos/Nos_MT-OpenNMT-en-gl", revision="main")
|
19 |
|
20 |
def translate(input_text):
|
21 |
+
print(input_text)
|
22 |
command = f"onmt_translate -src {input_text} -model {os.path.join(MODELS_PATH, model_dir_en_gl)}/NOS-MT-OpenNMT-en-gl --output ./output_file.txt --replace_unk"
|
23 |
process = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
24 |
stdout, stderr = process.communicate()
|