File size: 634 Bytes
467f67e
 
b4f2c2a
467f67e
 
 
 
 
 
 
 
 
8f0b8e0
1
2
3
4
5
6
7
8
9
10
11
12
13
import gradio as gr


title = "Transformer-XL"
description = "Gradio Demo for Transformer-XL. 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/1901.02860' target='_blank'>Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context</a></p>"

examples = [
    ['My name is Thomas and my main']
]

gr.Interface.load("models/transfo-xl-wt103", inputs=gr.inputs.Textbox(lines=5, label="Input Text"),title=title,description=description,article=article, examples=examples).launch(enable_queue=True)