JustusI commited on
Commit
e98fa1f
1 Parent(s): 80ba5f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -32,7 +32,9 @@ lang_dict = {"Acehnese (Arabic script)": "ace_Arab",
32
  "English": "eng_Latn"}
33
 
34
  input_text = st.text_area("Enter text to be translated")
 
35
 
36
  if input_text and src and tgt and st.button('Translate'):
37
- translated_text = translator(input_text, src_lang= lang_dict[src], tgt_lang= lang_dict[tgt])[0]["translation_text"]
38
- st.text("Translated Text:", translated_text)
 
 
32
  "English": "eng_Latn"}
33
 
34
  input_text = st.text_area("Enter text to be translated")
35
+ translated_text = translator(input_text, src_lang= lang_dict[src], tgt_lang= lang_dict[tgt])[0]["translation_text"]
36
 
37
  if input_text and src and tgt and st.button('Translate'):
38
+
39
+ #st.write("Translated Text:", translated_text)
40
+ st.text(translated_text)