ReiderMx commited on
Commit
35b2d7c
1 Parent(s): e9160c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
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, inputs="text", outputs="image", title="Sentiment Analysis")
 
 
 
 
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)