Wootang01 commited on
Commit
43c8f77
·
1 Parent(s): 3b7c983

Update app.py

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