Spaces:
Running
Running
Tenzin Gyalpo
commited on
Commit
•
2ccd305
1
Parent(s):
62ffc5a
Update app.py
Browse files
app.py
CHANGED
@@ -45,11 +45,13 @@ def translation(source, target, text):
|
|
45 |
|
46 |
full_output = output
|
47 |
output = output[0]['translation_text']
|
48 |
-
result = {'inference_time': end_time - start_time,
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
|
|
|
|
53 |
return result
|
54 |
|
55 |
|
|
|
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 |
+
result = full_output;
|
54 |
+
|
55 |
return result
|
56 |
|
57 |
|