Mr-Vicky-01 commited on
Commit
ae4603d
·
verified ·
1 Parent(s): eee06dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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
- # examples = [
14
- # ["Hello, how are you today?"],
15
- # ["Translate this sentence into another language."],
16
- # ["Can you help me with this text?"],
17
- # ]
18
 
19
- demo = gr.Interface(fn=language_translator, inputs='text',outputs='text',title='Language Translator ENGLISH TO FRENCH',examples=examples)
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)