File size: 417 Bytes
5e9759a
 
 
63ceda2
5e9759a
 
 
 
 
 
 
 
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/gpt2", 
	title = "Text Generation with a miniature GPT",
	inputs = [
        gr.inputs.Textbox(lines=2, label="Text"),
    ],
    description=description,
    examples=[["Adventurer is approached by a mysterious stranger in the tavern for a new quest."]]
)
interface.launch()