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