phunlh2001 commited on
Commit
0c147dc
·
verified ·
1 Parent(s): 0efdba1

fixed: change position of button

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -9,9 +9,8 @@ st.title("Demo translate VI - EN")
9
 
10
  input_text = st.text_area("Input the Vietnamese text:", "")
11
 
12
-
13
- if input_text:
14
- if st.button("Submit"):
15
  encoded_text = tokenizer(input_text, return_tensors="pt", padding=True, truncation=True)
16
 
17
  translated_text = translator(input_text)
 
9
 
10
  input_text = st.text_area("Input the Vietnamese text:", "")
11
 
12
+ if st.button("Submit"):
13
+ if input_text:
 
14
  encoded_text = tokenizer(input_text, return_tensors="pt", padding=True, truncation=True)
15
 
16
  translated_text = translator(input_text)