Update app.py
Browse files
app.py
CHANGED
@@ -31,4 +31,6 @@ if submit_button:
|
|
31 |
# Decode the translated text
|
32 |
translated_text = tokenizer.decode(output_ids[0], skip_special_tokens=True)
|
33 |
# Display the translated text
|
34 |
-
|
|
|
|
|
|
31 |
# Decode the translated text
|
32 |
translated_text = tokenizer.decode(output_ids[0], skip_special_tokens=True)
|
33 |
# Display the translated text
|
34 |
+
print(translated_text)
|
35 |
+
st.write(f"Translated text from {sselected_language} to {tselected_language}:", translated_text)
|
36 |
+
translated_textarea = st.text(translated_text)
|