test / app.py
3v324v23's picture
.
d3225a6
raw
history blame
501 Bytes
import gradio as gr
def greet(name):
return "Hello " + name + "!!"
description = "Story generation with GPT-2"
title = "Generate your own story"
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,
examples=examples
)
interface.launch()
#iface = gr.Interface(fn=greet, inputs="text", outputs="text")
#iface.launch()