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 = "

Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context

" 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)