words / first_app.py
Has-ai's picture
Update first_app.py
45ca154
import gradio as gr
from gradio import inputs
description = "Story generation with GPT-2"
examples = [["Adventurer is approached by a mysterious stranger in the tavern for a new quest."]]
interface = gr.Interface.load("huggingface/pranavpsv/gpt2-genre-story-generator",
description=description,
title = "Generate your own story",
inputs = [gr.inputs.Textbox(lines=4, label="Start your story"), ],
examples=examples
)
interface.launch()