File size: 394 Bytes
a78ed31 8b4878c a78ed31 8b4878c a78ed31 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import gradio as gr
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."]]
def greet(name):
return "Hello " + name + "!!"
iface = gr.Interface(fn=greet, inputs="text", outputs="text",
description=description,
examples=examples)
iface.launch() |