Spaces:
Runtime error
Runtime error
Update app.py
Browse filesCambio la logica del ejemplo
app.py
CHANGED
@@ -1,9 +1,19 @@
|
|
1 |
-
|
2 |
|
3 |
-
|
4 |
-
return "Hola " + name + "!!"
|
5 |
|
6 |
-
|
|
|
|
|
|
|
|
|
7 |
|
8 |
-
|
9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
|
3 |
+
title = "gpt2-xl"
|
|
|
4 |
|
5 |
+
examples = [
|
6 |
+
["Todos los hincas de Racing son"],
|
7 |
+
["Y qu茅 pas贸 con Boca"],
|
8 |
+
["Ser hincha de Independiente es vergonzoso"],
|
9 |
+
]
|
10 |
|
11 |
+
demo = gr.load(
|
12 |
+
"huggingface/gpt2-xl",
|
13 |
+
inputs=gr.Textbox(lines=5, max_lines=6, label="Input Text"),
|
14 |
+
title=title,
|
15 |
+
examples=examples,
|
16 |
+
)
|
17 |
+
|
18 |
+
if __name__ == "__main__":
|
19 |
+
demo.launch()
|