keithhon commited on
Commit
22d8fc7
1 Parent(s): 0b2b9ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -43,13 +43,13 @@ def translation(source, target, text):
43
 
44
  end_time = time.time()
45
 
46
- score = output[0]['score']
47
  output = output[0]['translation_text']
48
  result = {'inference_time': end_time - start_time,
49
  'source': source,
50
  'target': target,
51
  'result': output,
52
- 'score': score}
53
  return result
54
 
55
 
 
43
 
44
  end_time = time.time()
45
 
46
+ full_output = output
47
  output = output[0]['translation_text']
48
  result = {'inference_time': end_time - start_time,
49
  'source': source,
50
  'target': target,
51
  'result': output,
52
+ 'full_output': full_output}
53
  return result
54
 
55