TiberiuCristianLeon commited on
Commit
45313cb
·
verified ·
1 Parent(s): 93b3d67

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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[0])
 
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)