MariaK's picture
Updated checkpoint name
be438d2
raw
history blame
627 Bytes
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("transfo-xl-wt103", inputs=gr.inputs.Textbox(lines=5, label="Input Text"),title=title,description=description,article=article, examples=examples).launch(enable_queue=True)