Spaces:
Runtime error
Runtime error
fixed: change position of button
Browse files
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)
|