File size: 409 Bytes
a970736
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, intensity):
    return "Hello, " + name + "!" * intensity

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)