Mr-Vicky-01 commited on
Commit
4dd5512
1 Parent(s): 51fd7bb

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
- ["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)
 
10
  with tokenizer.as_target_tokenizer():
11
  return tokenizer.decode(out[0],skip_special_tokens=True)
12
 
13
+ # examples = [
14
+ # ["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)