phunlh2001 commited on
Commit
424b845
·
verified ·
1 Parent(s): 43fc44e

fix: change submit button

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -9,8 +9,9 @@ st.title("Demo translate VI - EN")
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)
 
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)