import gradio as gr from gradio import mix title = "GPT2" description = "Gradio Demo for OpenAI GPT2. To use it, simply add your text, or click one of the examples to load them. Read more at the links below." article = "

Language Models are Unsupervised Multitask Learners

" examples = [ ['Paris is the capital of'] ] io1 = gr.Interface.load("huggingface/gpt2") io2 = gr.Interface.load("huggingface/gpt2-large") mix.Parallel(io1, io2,inputs=gr.inputs.Textbox(lines=5, label="Input Text"),description=description,title=title,article=article, examples=examples).launch(enable_queue=True)