File size: 381 Bytes
a970736
d33bd1c
 
1cfb225
 
 
d33bd1c
1cfb225
a970736
1
2
3
4
5
6
7
8
9
import gradio as gr
interface = gr.Interface.load(
    "huggingface/pranavpsv/gpt2-genre-story-generator",
    inputs=[gr.Textbox(lines=7, label="Story")],
    description="Story generation with GPT-2",
    examples=[["Adventurer is approached by a mysterious stranger in the tavern for a new quest"]],
    outputs=[gr.Textbox(label='Story Generation Output')]
)
interface.launch()