Timing0311 commited on
Commit
401530d
1 Parent(s): 7fcb7f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ def translation_job(job, text):
13
 
14
  input = job_map[job] + text
15
  print(input)
16
- response = trans_tokenizer.batch_decode(input, max_length=100, num_beams=4)
17
  return response[0]['generated_text']
18
 
19
 
 
13
 
14
  input = job_map[job] + text
15
  print(input)
16
+ response = trans_pipe(input, max_length=100, num_beams=4)
17
  return response[0]['generated_text']
18
 
19