ttphong68 commited on
Commit
1240610
·
1 Parent(s): fc140df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ text2text_tkn= T5Tokenizer.from_pretrained("t5-small")
5
  mdl = T5ForConditionalGeneration.from_pretrained("t5-small")
6
 
7
  def text2text_translation(text):
8
- inp = "translate English to Vietnamese:: "+text
9
  enc = text2text_tkn(inp, return_tensors="pt")
10
  tokens = mdl.generate(**enc)
11
  response=text2text_tkn.batch_decode(tokens)
 
5
  mdl = T5ForConditionalGeneration.from_pretrained("t5-small")
6
 
7
  def text2text_translation(text):
8
+ inp = "translate English to French:: "+text
9
  enc = text2text_tkn(inp, return_tensors="pt")
10
  tokens = mdl.generate(**enc)
11
  response=text2text_tkn.batch_decode(tokens)