Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,8 +7,8 @@ translator = gr.Interface.load("huggingface/Helsinki-NLP/opus-mt-zh-en")
|
|
7 |
model1 = gr.Interface.load("huggingface/EleutherAI/gpt-j-6B")
|
8 |
model2 = gr.Interface.load("huggingface/ckiplab/gpt2-base-chinese")
|
9 |
|
10 |
-
tg_demo = gr.Series(translator, model1, inputs=gr.Textbox(lines=5, label="Input Text"),
|
11 |
-
gt_demo = gr.Series(model2, translator, inputs=gr.Textbox(lines=5, label="Input Text"),
|
12 |
|
13 |
demo = gr.TabbedInterface([tg_demo, gt_demo], ["Chinese Translator to English Generator", "Chinese Generator to English Translator"])
|
14 |
|
|
|
7 |
model1 = gr.Interface.load("huggingface/EleutherAI/gpt-j-6B")
|
8 |
model2 = gr.Interface.load("huggingface/ckiplab/gpt2-base-chinese")
|
9 |
|
10 |
+
tg_demo = gr.Series(translator, model1, inputs=gr.Textbox(lines=5, label="Input Text"), description=description)
|
11 |
+
gt_demo = gr.Series(model2, translator, inputs=gr.Textbox(lines=5, label="Input Text"), description=description)
|
12 |
|
13 |
demo = gr.TabbedInterface([tg_demo, gt_demo], ["Chinese Translator to English Generator", "Chinese Generator to English Translator"])
|
14 |
|