Spaces:
Paused
Paused
File size: 568 Bytes
cbb9c79 1e337d6 cbb9c79 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import gradio as gr
from gradio import inputs
description = "Story generation with GPT-2"
interface = gr.Interface.load("huggingface/pranavpsv/gpt2-genre-story-generator",
title = "Story Generation with GPT-2",
inputs = [
gr.inputs.Textbox(lines=7, label="Story"),
],
description=description,
examples=[["Adventurer is approached by a mysterious stranger in the tavern for a new quest"],
["A skilled pilot drives a spaceship ino a new quest"],
["A wizard learn spells for a quest"]
]
)
interface.launch() |