Spaces:
Sleeping
Sleeping
Commit
·
a947b14
1
Parent(s):
9568911
Update app.py
Browse files
app.py
CHANGED
@@ -55,13 +55,6 @@ def translate(input):
|
|
55 |
article_ar = ".".join(translation)
|
56 |
return article_ar
|
57 |
# Wrap up function
|
58 |
-
'''
|
59 |
-
def translate_gradio(input):
|
60 |
-
|
61 |
-
tokenized_text = tokenizer.prepare_seq2seq_batch([input], return_tensors='pt')
|
62 |
-
encode = model.generate(**tokenized_text)
|
63 |
-
text_ar = tokenizer.batch_decode(encode,skip_special_tokens=True)[0]
|
64 |
-
return text_ar'''
|
65 |
|
66 |
|
67 |
translate_interface = gr.Interface(fn = translate,
|
|
|
55 |
article_ar = ".".join(translation)
|
56 |
return article_ar
|
57 |
# Wrap up function
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
|
59 |
|
60 |
translate_interface = gr.Interface(fn = translate,
|