Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -13,8 +13,6 @@ def translation(source, target, text) -> str:
|
|
13 |
translator = pipeline('translation', model=model, tokenizer=tokenizer, src_lang=source, tgt_lang=target)
|
14 |
output = translator(text, max_length=400)
|
15 |
|
16 |
-
end_time = time.time()
|
17 |
-
|
18 |
output = output[0]['translation_text']
|
19 |
return output
|
20 |
|
|
|
13 |
translator = pipeline('translation', model=model, tokenizer=tokenizer, src_lang=source, tgt_lang=target)
|
14 |
output = translator(text, max_length=400)
|
15 |
|
|
|
|
|
16 |
output = output[0]['translation_text']
|
17 |
return output
|
18 |
|