Wootang01 commited on
Commit
bc6d40c
·
1 Parent(s): 8fa52f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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"), outputs="text", description=description)
11
- gt_demo = gr.Series(model2, translator, inputs=gr.Textbox(lines=5, label="Input Text"), outputs="text", description=description)
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