File size: 386 Bytes
a970736
5a65659
f2d23e7
63237f4
5a65659
 
 
619e8b5
 
5a65659
 
1cfb225
5a65659
619e8b5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import gradio as gr

def greet(name):
    return "Hello, " + name + "!"

demo = gr.Interface (
    fn=greet,
    description="Story generation with GPT-2",
    examples=[["Adventurer is approached by a mysterious stranger in the tavern for a new quest"]],
	inputs=[gr.Textbox(lines=7, label="Story URL")],
	outputs=[gr.Textbox(lines=7, label="Story Summary")]
)

demo.launch(share=True)