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() |