File size: 623 Bytes
7552b84
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import gradio as gr

title = "Funnel Transformer"

description = "Gradio Demo for Funnel Transformer. 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/2006.03236' target='_blank'>Funnel-Transformer: Filtering out Sequential Redundancy for Efficient Language Processing</a></p>"

examples = [
    ["Replace me by any text you'd like."]
]

gr.Interface.load("huggingface/funnel-transformer/small",title=title,description=description,article=article, examples=examples).launch(enable_queue=True)