File size: 624 Bytes
68952c6
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import gradio as gr

title = "T5"

description = "Gradio Demo for T5. To use it, simply add your text, or click one of the examples to load them. Read more at the links below."

article = "<p style='text-align: center'><a href='https://arxiv.org/abs/1910.10683' target='_blank'>Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer</a></p>"

examples = [
    ['My name is Sarah and I live in London']
]

gr.Interface.load("huggingface/t5-base", inputs=gr.inputs.Textbox(lines=5, label="Input Text"),title=title,description=description,article=article, examples=examples).launch(enable_queue=True)