Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -247,12 +247,12 @@ def translation(source, target, text):
|
|
247 |
|
248 |
full_output = output
|
249 |
output = output[0]['translation_text']
|
250 |
-
result = {'inference_time': end_time - start_time,
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
return
|
256 |
|
257 |
|
258 |
if __name__ == '__main__':
|
@@ -276,7 +276,7 @@ if __name__ == '__main__':
|
|
276 |
gr.inputs.Textbox(lines=5, label="Input text"),
|
277 |
]
|
278 |
|
279 |
-
outputs = gr.
|
280 |
|
281 |
title = "EasyProject"
|
282 |
|
@@ -295,4 +295,5 @@ if __name__ == '__main__':
|
|
295 |
description=description,
|
296 |
examples=examples,
|
297 |
examples_per_page=50,
|
|
|
298 |
).launch()
|
|
|
247 |
|
248 |
full_output = output
|
249 |
output = output[0]['translation_text']
|
250 |
+
# result = {'inference_time': end_time - start_time,
|
251 |
+
# 'source': source,
|
252 |
+
# 'target': target,
|
253 |
+
# 'result': output,
|
254 |
+
# 'full_output': full_output}
|
255 |
+
return output
|
256 |
|
257 |
|
258 |
if __name__ == '__main__':
|
|
|
276 |
gr.inputs.Textbox(lines=5, label="Input text"),
|
277 |
]
|
278 |
|
279 |
+
outputs = gr.inputs.Textbox(label="Output text")
|
280 |
|
281 |
title = "EasyProject"
|
282 |
|
|
|
295 |
description=description,
|
296 |
examples=examples,
|
297 |
examples_per_page=50,
|
298 |
+
theme="JohnSmith9982/small_and_pretty"
|
299 |
).launch()
|