Spaces:
Runtime error
Runtime error
Commit
·
0bb68ed
1
Parent(s):
3a20ddb
Update app.py
Browse files
app.py
CHANGED
@@ -39,6 +39,8 @@ Demo análisis de sentimientos y emociones, el objetivo es indicar el sentimient
|
|
39 |
|
40 |
article = "<p style='text-align: center'><a href='http://allaideas.com/index.html' target='_blank'>Análisis de sentimiento y emoción: Link para más info</a> </p>"
|
41 |
|
|
|
|
|
42 |
input_1 = gr.inputs.Textbox(label="Texto a analizar")
|
43 |
output_1 = gr.outputs.Textbox(label="Resultado sentimiento positivo")
|
44 |
output_2 = gr.outputs.Textbox(label="Resultado sentimiento negativo")
|
@@ -50,5 +52,6 @@ iface = gr.Interface(fn=get_analisis,
|
|
50 |
outputs=[output_1, output_2, output_3, output_4],
|
51 |
description=description,
|
52 |
article=article,
|
|
|
53 |
title="Análisis de Sentimiento y Emoción en Español")
|
54 |
iface.launch(debug=True)
|
|
|
39 |
|
40 |
article = "<p style='text-align: center'><a href='http://allaideas.com/index.html' target='_blank'>Análisis de sentimiento y emoción: Link para más info</a> </p>"
|
41 |
|
42 |
+
examples = [['Estoy muy feliz'], ['No me lo esperaba. Muchas gracias'],['No ganamos, que rabia']]
|
43 |
+
|
44 |
input_1 = gr.inputs.Textbox(label="Texto a analizar")
|
45 |
output_1 = gr.outputs.Textbox(label="Resultado sentimiento positivo")
|
46 |
output_2 = gr.outputs.Textbox(label="Resultado sentimiento negativo")
|
|
|
52 |
outputs=[output_1, output_2, output_3, output_4],
|
53 |
description=description,
|
54 |
article=article,
|
55 |
+
examples=examples,
|
56 |
title="Análisis de Sentimiento y Emoción en Español")
|
57 |
iface.launch(debug=True)
|