phunlh2001 commited on
Commit
c578893
·
verified ·
1 Parent(s): ac08ebe

update english

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 translation with pretrained model")
9
 
10
- input_text = st.text_area("Nhập văn bản tiếng Việt:", "")
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)