| import gradio as gr | |
| description = "Story generation with GPT-2" | |
| title = "Generate your own story" | |
| examples = [["US Aircraft Carrier goes through a wormhole and finds itself in the Pacific Ocean on December 6, 1941"], ["Construction worker digs up what appears to be his own future grave."]] | |
| interface = gr.load("pranavpsv/gpt2-genre-story-generator", | |
| src="models", | |
| title=description, | |
| examples=examples | |
| ) | |
| interface.launch() |