lvwerra HF Staff commited on
Commit
d63d971
·
1 Parent(s): 25cfda6

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -0
app.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ title = "GPT-2 Generator"
4
+ description = "Let GPT-2 complete your sentence."
5
+ examples = [
6
+ ['Monty Python were'],
7
+ ["The answer to life, the universe and everything is"],
8
+ ]
9
+
10
+ gr.Interface.load(
11
+ "huggingface/gpt2-large",
12
+ inputs=gr.inputs.Textbox(lines=5, label="Input Text"),
13
+ title=title,
14
+ description=description,
15
+ examples=examples
16
+ ).launch()