Spaces:
Build error
Build error
File size: 601 Bytes
bf8bdf6 5767a2a ce52f4d 5767a2a fafb441 3d41432 ce52f4d 1908222 bb1abbf 3d41432 1908222 |
1 2 3 4 5 6 7 8 9 10 11 12 |
#level 3 text generator
import gradio as gr
from gradio.mix import Series
title = "Chinese and English Translator with Text Generator Flan-T5-XL"
description = "Input Chinese or English 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/google/flan-t5-xl")
gr.Series(translator, model2, inputs=gr.Textbox(lines=5, label="Input Text"), title=title, description=description).launch() |