3v324v23 commited on
Commit
d3225a6
·
1 Parent(s): 1dbb7b8
Files changed (1) hide show
  1. app.py +14 -2
app.py CHANGED
@@ -3,5 +3,17 @@ import gradio as gr
3
  def greet(name):
4
  return "Hello " + name + "!!"
5
 
6
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
- iface.launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  def greet(name):
4
  return "Hello " + name + "!!"
5
 
6
+
7
+ description = "Story generation with GPT-2"
8
+ title = "Generate your own story"
9
+ examples = [["Adventurer is approached by a mysterious stranger in the tavern for a new quest."]]
10
+
11
+ interface = gr.Interface.load("huggingface/pranavpsv/gpt2-genre-story-generator",
12
+ description=description,
13
+ examples=examples
14
+ )
15
+
16
+ interface.launch()
17
+
18
+ #iface = gr.Interface(fn=greet, inputs="text", outputs="text")
19
+ #iface.launch()