File size: 405 Bytes
c805db4
ab062e4
d540de9
99d6ebb
c805db4
 
 
 
 
99d6ebb
c805db4
d540de9
f909d89
c805db4
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import gradio as gr

title = "DeepESP/gpt2-spanish"

examples = [
    ["Todos los hincas de Racing son"],
    ["Y qué pasó con Boca"],
    ["Ser hincha de Independiente es vergonzoso"],
]

demo = gr.load(
    "huggingface/DeepESP/gpt2-spanish",
    inputs=gr.Textbox(lines=5, max_lines=6, label="Ingresa un texto"),
    title=title,
    examples=examples,
)

if __name__ == "__main__":
    demo.launch()