Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ model2 = gr.Interface.load("huggingface/ckiplab/gpt2-base-chinese")
|
|
11 |
tg_demo = gr.Series(translator, model1, inputs=gr.Textbox(lines=5, label="Input Text"), outputs="text")
|
12 |
gt_demo = gr.Series(model2, translator, inputs=gr.Textbox(lines=5, label="Input Text"), outputs="text")
|
13 |
|
14 |
-
demo = gr.TabbedInterface([tg_demo, gt_demo], ["Chinese Translator to English Generator", "Chinese Generator to English Translator"])
|
15 |
|
16 |
if __name__ == "__main__":
|
17 |
demo.launch()
|
|
|
11 |
tg_demo = gr.Series(translator, model1, inputs=gr.Textbox(lines=5, label="Input Text"), outputs="text")
|
12 |
gt_demo = gr.Series(model2, translator, inputs=gr.Textbox(lines=5, label="Input Text"), outputs="text")
|
13 |
|
14 |
+
demo = gr.TabbedInterface([tg_demo, gt_demo], ["Chinese Translator to English Generator", "Chinese Generator to English Translator"], title=title, description=description)
|
15 |
|
16 |
if __name__ == "__main__":
|
17 |
demo.launch()
|