Ahsen Khaliq commited on
Commit
467f67e
1 Parent(s): 6ba5b6d

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ title = "Transformer-XL"
4
+ 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."
5
+
6
+ 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>"
7
+
8
+ examples = [
9
+ ['My name is Thomas and my main']
10
+ ]
11
+
12
+ gr.Interface.load("huggingface/transfo-xl-wt103", inputs=gr.inputs.Textbox(lines=5, label="Input Text"),title=title,description=description,article=article, examples=examples).launch(enable_queue=True)