Update app.py
Browse files
app.py
CHANGED
@@ -22,10 +22,9 @@ if submit_button:
|
|
22 |
|
23 |
# Perform translation
|
24 |
output_ids = model.generate(input_ids)
|
25 |
-
translated = tokenizer.decode(output_ids[0], skip_special_tokens=True)
|
26 |
|
27 |
# Decode the translated text
|
28 |
translated_text = tokenizer.decode(output_ids[0], skip_special_tokens=True)
|
29 |
|
30 |
# Display the translated text
|
31 |
-
st.write("Translated Text:", translated_text
|
|
|
22 |
|
23 |
# Perform translation
|
24 |
output_ids = model.generate(input_ids)
|
|
|
25 |
|
26 |
# Decode the translated text
|
27 |
translated_text = tokenizer.decode(output_ids[0], skip_special_tokens=True)
|
28 |
|
29 |
# Display the translated text
|
30 |
+
st.write("Translated Text:", translated_text)
|