File size: 599 Bytes
dcdaaec
5538496
 
1ef77d6
 
5538496
 
 
1ef77d6
5538496
 
0235d30
5538496
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22a0055
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import gradio as gr
from gradio import mix

title = "Miniature GPT"
description = "Gradio Demo for a miniature GPT. To use it, simply add your text, or click one of the examples to load them. Read more at the links below."


examples = [
    ['A kid is playing']
]

io = gr.Interface.load("keras-io/text-generation-miniature-gpt")



def inference(text):

    return io(text)
    
     

gr.Interface(
    inference, 
    [gr.inputs.Textbox(label="Input")], 
    gr.outputs.Textbox(label="Output"),
    examples=examples,
    # article=article,
    title=title,
    description=description).launch()