File size: 381 Bytes
dcdaaec
6ebfe78
2e07802
6ebfe78
2e07802
6ebfe78
2e07802
6ebfe78
 
2e07802
6ebfe78
 
1
2
3
4
5
6
7
8
9
10
11
12
import gradio as gr
from gradio import inputs
description = "Text generation with a miniature GPT"
interface = gr.Interface.load("huggingface/pranavpsv/gpt2-genre-story-generator", 
	title = "Text Generation with GPT-2",
	inputs = [
        gr.inputs.Textbox(lines=5, label="Text"),
    ],
    description=description,
    examples=[["A kid is playing with "]]
)
interface.launch()