Mr-Vicky-01 commited on
Commit
5c45c88
1 Parent(s): 097b8b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -9,12 +9,12 @@ def language_translator(text):
9
  out = model.generate(**tokenized, max_length=128)
10
  return tokenizer.decode(out[0],skip_special_tokens=True)
11
 
12
- examples = [
13
- ["hello everyone"]
14
- ["hardwork never fails."],
15
- ["A room without books is like a body without a soul."],
16
- ["The Sun is approximately 4.6 billion years older than Earth."],
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)
 
9
  out = model.generate(**tokenized, max_length=128)
10
  return tokenizer.decode(out[0],skip_special_tokens=True)
11
 
12
+ # examples = [
13
+ # ["hello everyone"]
14
+ # ["hardwork never fails."],
15
+ # ["A room without books is like a body without a soul."],
16
+ # ["The Sun is approximately 4.6 billion years older than Earth."],
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)