Download app.py from philsco/TextGen: direct link, hf CLI and curl.
- Browser
- Download file 462 Bytes
-
https://huggingface.co/spaces/philsco/TextGen/resolve/main/app.py
- Command line
-
hf download hf://spaces/philsco/TextGen/app.py
-
curl -L -o app.py https://huggingface.co/spaces/philsco/TextGen/resolve/main/app.py
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() |