Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
|
|
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)
|