mafoaurelie commited on
Commit
5e52db4
1 Parent(s): 664be2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -5,10 +5,11 @@ from transformers import pipeline
5
  sentiment= pipeline("sentiment-analysis")
6
 
7
  def get_sentiment(input_text):
8
- texte= sentiment(input_text)
9
- result=texte[0]['label']
10
- return result
11
-
 
12
  iface=gr.Interface(title='Sentiment Analysis',
13
  fn=get_sentiment,
14
  inputs='text',
 
5
  sentiment= pipeline("sentiment-analysis")
6
 
7
  def get_sentiment(input_text):
8
+ texte= sentiment(input_text)
9
+ result=texte[0]['label']
10
+ return result
11
+
12
+
13
  iface=gr.Interface(title='Sentiment Analysis',
14
  fn=get_sentiment,
15
  inputs='text',