Wootang01's picture
Update app.py
ce52f4d
raw
history blame
481 Bytes
import gradio as gr
from gradio.mix import Series
title = "Chinese Text Generator and Translator"
description = "Input Chinese language text, submit and the machine will generate additional English language text"
translator = gr.Interface.load("huggingface/Helsinki-NLP/opus-mt-zh-en")
model1 = gr.Interface.load("huggingface/ckiplab/gpt2-base-chinese")
gr.Series(model1, translator, inputs=gr.Textbox(lines=5, label="Input Text"), title=title, description=description).launch()