Preetham04 commited on
Commit
c6d4788
·
verified ·
1 Parent(s): 6a55023

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -1
app.py CHANGED
@@ -17,6 +17,8 @@ gradio_app = gr.Interface(
17
  if __name__ == "__main__":
18
  gradio_app.launch(share=True)
19
  """
 
 
20
  import gradio as gr
21
 
22
  from transformers import pipeline
@@ -41,5 +43,17 @@ with gr.Blocks() as demo:
41
  inputs=[find])
42
 
43
  demo.launch()
 
 
 
 
 
 
 
 
 
 
 
 
44
 
45
-
 
17
  if __name__ == "__main__":
18
  gradio_app.launch(share=True)
19
  """
20
+
21
+ """
22
  import gradio as gr
23
 
24
  from transformers import pipeline
 
43
  inputs=[find])
44
 
45
  demo.launch()
46
+ """
47
+
48
+ import gradio as gr
49
+
50
+ description = "Story generation with GPT-2"
51
+ title = "Generate your own story"
52
+ examples = [["Adventurer is approached by a mysterious stranger in the tavern for a new quest."]]
53
+
54
+ interface = gr.Interface.load("huggingface/pranavpsv/gpt2-genre-story-generator",
55
+ description=description,
56
+ examples=examples
57
+ )
58
 
59
+ interface.launch()