Thantham commited on
Commit
063325f
·
1 Parent(s): c0e8bc2

Add application file

Browse files
Files changed (1) hide show
  1. app.py +20 -0
app.py ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ title = "gpt2-xl"
4
+
5
+ examples = [
6
+ ["The tower is 324 metres (1,063 ft) tall,"],
7
+ ["The Moon's orbit around Earth has"],
8
+ ["The smooth Borealis basin in the Northern Hemisphere covers 40%"],
9
+ ]
10
+
11
+ demo = gr.load(
12
+ "huggingface/gpt2-xl",
13
+ inputs=gr.Textbox(lines=5, max_lines=6, label="Input Text"),
14
+ title=title,
15
+ examples=examples,
16
+ )
17
+
18
+ if __name__ == "__main__":
19
+ demo.launch(share=True)
20
+