Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,11 @@
|
|
1 |
import gradio as gr
|
2 |
from gradio.mix import Series
|
3 |
|
4 |
-
title = "Chinese
|
5 |
description = "Input Chinese language text, submit and the machine will generate additional English language text"
|
6 |
|
7 |
translator = gr.Interface.load("huggingface/Helsinki-NLP/opus-mt-zh-en")
|
8 |
-
model1 = gr.Interface.load("huggingface/ckiplab/gpt2-base-chinese")
|
|
|
9 |
|
10 |
-
gr.Series(
|
|
|
1 |
import gradio as gr
|
2 |
from gradio.mix import Series
|
3 |
|
4 |
+
title = "Chinese to English Translator and English Text Generator"
|
5 |
description = "Input Chinese language text, submit and the machine will generate additional English language text"
|
6 |
|
7 |
translator = gr.Interface.load("huggingface/Helsinki-NLP/opus-mt-zh-en")
|
8 |
+
#model1 = gr.Interface.load("huggingface/ckiplab/gpt2-base-chinese")
|
9 |
+
model2 = gr.Interface.load("huggingface/EleutherAI/gpt-j-6B")
|
10 |
|
11 |
+
gr.Series(translator, model2, inputs=gr.Textbox(lines=5, label="Input Text"), title=title, description=description).launch()
|