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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -7,6 +7,5 @@ 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)
 
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
 
11
+ gr.Series(model4, translator, inputs=gr.Textbox(lines=5, label="Input Text"), title=title, description=description).launch(debug=True)