Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
38 |
-
st.
|
|
|
|
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)
|