Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -43,13 +43,13 @@ def translation(source, target, text):
|
|
43 |
|
44 |
end_time = time.time()
|
45 |
|
46 |
-
|
47 |
output = output[0]['translation_text']
|
48 |
result = {'inference_time': end_time - start_time,
|
49 |
'source': source,
|
50 |
'target': target,
|
51 |
'result': output,
|
52 |
-
'
|
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 |
|