Last commit not found
raw
history blame
563 Bytes
import gradio as gr
from gradio.mix import Series
title = "Chinese to English Translator and English Text Generator"
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")
model2 = gr.Interface.load("huggingface/EleutherAI/gpt-j-6B")
gr.Series(translator, model2, inputs=gr.Textbox(lines=5, label="Input Text"), title=title, description=description).launch()