philsco commited on
Commit
33bb21e
·
1 Parent(s): 027ebc0

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
+ description = "Story generation with GPT-2"
4
+ title = "Generate your own story"
5
+ examples = [["US Aircraft Carrier goes through a wormhole and finds itself in the Pacific Ocean on December 6, 1941"], ["Construction worker digs up what appears to be his own future grave."]]
6
+
7
+ interface = gr.Interface.load("huggingface/pranavpsv/gpt2-genre-story-generator",
8
+ description=description,
9
+ examples=examples
10
+ )
11
+
12
+ interface.launch()