LOHJC commited on
Commit
2d83664
1 Parent(s): 7a17d52

add more examples

Browse files
Files changed (2) hide show
  1. __pycache__/dependency.cpython-311.pyc +0 -0
  2. app.py +3 -2
__pycache__/dependency.cpython-311.pyc ADDED
Binary file (14.8 kB). View file
 
app.py CHANGED
@@ -70,7 +70,7 @@ DESCRIPTION = ""
70
  DESCRIPTION += "<h1>中英翻译器</h1>"
71
  DESCRIPTION += "<h1>Chinese to English translator</h1>"
72
  DESCRIPTION += "<p>This translator is building by using transformer from scratch</p>"
73
- DESCRIPTION += "<p>This is just a demonstration of usage of transformer, the translation is not 100% correct</p>"
74
  DESCRIPTION += "<ul><li><a href=\"https://medium.com/@jiachiewloh/nlp-chinese-to-english-translation-by-using-transformer-6503c1f4a139\">Article</li>"
75
  DESCRIPTION += "<li><a href=\"https://www.kaggle.com/code/jclohjc/cn-en-translation-using-transformer\">Code</li></ul>"
76
 
@@ -90,7 +90,8 @@ with gr.Blocks(css="styles.css") as demo:
90
 
91
  #Examples
92
  gr.Examples(examples=[["祝您有个美好的一天","Have a nice day"], ["早上好,很高心见到你","Good Morning, nice to meet you"],
93
- ["你叫什么名字","What is your name"],["我喜欢爬山","I like climbing"],["我爱你","I love you"]],\
 
94
  inputs=[input_text,output_text],\
95
  outputs=[output_text])
96
 
 
70
  DESCRIPTION += "<h1>中英翻译器</h1>"
71
  DESCRIPTION += "<h1>Chinese to English translator</h1>"
72
  DESCRIPTION += "<p>This translator is building by using transformer from scratch</p>"
73
+ DESCRIPTION += "<p>This is just a demonstration of the usage of transformer, the translation is not 100% correct</p>"
74
  DESCRIPTION += "<ul><li><a href=\"https://medium.com/@jiachiewloh/nlp-chinese-to-english-translation-by-using-transformer-6503c1f4a139\">Article</li>"
75
  DESCRIPTION += "<li><a href=\"https://www.kaggle.com/code/jclohjc/cn-en-translation-using-transformer\">Code</li></ul>"
76
 
 
90
 
91
  #Examples
92
  gr.Examples(examples=[["祝您有个美好的一天","Have a nice day"], ["早上好,很高心见到你","Good Morning, nice to meet you"],
93
+ ["你叫什么名字","What is your name"],["我喜欢爬山","I like climbing"],["我爱你","I love you"],
94
+ ["我是一个好人","I am a good man"],["我们是一家人","We are family"]],\
95
  inputs=[input_text,output_text],\
96
  outputs=[output_text])
97