TextGen / app.py
philsco's picture
correct model url
b96ee62
raw
history blame contribute delete
462 Bytes
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()