Spaces:
Sleeping
Sleeping
Mr-Vicky-01
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -10,11 +10,11 @@ def language_translator(text):
|
|
10 |
with tokenizer.as_target_tokenizer():
|
11 |
return tokenizer.decode(out[0],skip_special_tokens=True)
|
12 |
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
|
19 |
-
demo = gr.Interface(fn=language_translator, inputs='text',outputs='text',title='
|
20 |
demo.launch(debug=True,share=True)
|
|
|
10 |
with tokenizer.as_target_tokenizer():
|
11 |
return tokenizer.decode(out[0],skip_special_tokens=True)
|
12 |
|
13 |
+
examples = [
|
14 |
+
["Hello, how are you today?"],
|
15 |
+
["Translate this sentence into another language."],
|
16 |
+
["how to play a game"],
|
17 |
+
]
|
18 |
|
19 |
+
demo = gr.Interface(fn=language_translator, inputs='text',outputs='text',title='English To Tamil Translator',examples=examples)
|
20 |
demo.launch(debug=True,share=True)
|