File size: 505 Bytes
b7be657
9b0b2e4
 
f0b4c1c
b7be657
f0b4c1c
b7be657
9b0b2e4
1
2
3
4
5
6
7
8
import gradio as gr
title = "T5"
description = "Gradio Demo for T5, Read more at the links below."
article = "<p style='text-align: center'><a href='https://huggingface.co/google/t5-base-lm-adapt' target='_blank'>Hugging face model page</a></p>"
examples = [
    ['Sevilla is a city in Spain']
]
gr.Interface.load("huggingface/google/t5-base-lm-adapt", inputs=gr.inputs.Textbox(lines=5, label="Input Text"),title=title,description=description,article=article, examples=examples,enable_queue=True).launch()