Spaces:
Runtime error
Runtime error
update english
Browse files
app.py
CHANGED
@@ -5,9 +5,9 @@ tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-vi-en")
|
|
5 |
|
6 |
translator = pipeline("translation_vi_to_en", model="Helsinki-NLP/opus-mt-vi-en")
|
7 |
|
8 |
-
st.title("Demo
|
9 |
|
10 |
-
input_text = st.text_area("
|
11 |
|
12 |
if input_text:
|
13 |
encoded_text = tokenizer(input_text, return_tensors="pt", padding=True, truncation=True)
|
|
|
5 |
|
6 |
translator = pipeline("translation_vi_to_en", model="Helsinki-NLP/opus-mt-vi-en")
|
7 |
|
8 |
+
st.title("Demo translate VI - EN")
|
9 |
|
10 |
+
input_text = st.text_area("Input the Vietnamese text:", "")
|
11 |
|
12 |
if input_text:
|
13 |
encoded_text = tokenizer(input_text, return_tensors="pt", padding=True, truncation=True)
|