Wootang01 commited on
Commit
23e95e5
·
1 Parent(s): 87c7b93

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -5,4 +5,8 @@ from gradio.mix import Series
5
  translator = gr.Interface.load("huggingface/Helsinki-NLP/opus-mt-zh-en")
6
  model4 = gr.Interface.load("huggingface/ckiplab/gpt2-base-chinese")
7
 
8
- gr.Series(model4, translator).launch(debug=True)
 
 
 
 
 
5
  translator = gr.Interface.load("huggingface/Helsinki-NLP/opus-mt-zh-en")
6
  model4 = gr.Interface.load("huggingface/ckiplab/gpt2-base-chinese")
7
 
8
+ title = "Chinese Text Generator and Translator"
9
+ description = "Input Chinese language text, submit and the machine will generate additional English language text."
10
+ examples = [''從前,大衛在香港一所中學工作。 他','一天,這隻狗仰望天空,看到了一艘太空船。 宇宙飛船', '洪水退去。 每個人都很安全。 沒有人死亡。'']
11
+
12
+ gr.Series(model4, translator, title=title, description=description,examples=examples).launch(debug=True)