Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -21,5 +21,9 @@ def analyze_sentiment(text):
|
|
21 |
result = results['labels'][ind]
|
22 |
return encoder[result]
|
23 |
|
24 |
-
demo = gr.Interface(fn=analyze_sentiment,
|
|
|
|
|
|
|
|
|
25 |
demo.launch(share=True)
|
|
|
21 |
result = results['labels'][ind]
|
22 |
return encoder[result]
|
23 |
|
24 |
+
demo = gr.Interface(fn=analyze_sentiment,
|
25 |
+
inputs=gr.Textbox(lines=2, placeholder="Escrbe algo para comenzar", label='Escribe algo para comenzar'),
|
26 |
+
outputs="image",
|
27 |
+
title="Analizador de Sentimientos")
|
28 |
+
|
29 |
demo.launch(share=True)
|