Salahudheen007 commited on
Commit
f51bcc7
·
verified ·
1 Parent(s): 5e1246c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,8 +1,8 @@
1
  import gradio as gr
2
  from transformers import pipeline
3
  sentiment_pipeline = pipeline("sentiment-analysis")
4
- def get_sentiment(inpit_text):
5
- result = sentiment_pipeline(inpit_text)
6
  return result[0]['label']
7
 
8
 
 
1
  import gradio as gr
2
  from transformers import pipeline
3
  sentiment_pipeline = pipeline("sentiment-analysis")
4
+ def get_sentiment(input_text):
5
+ result = sentiment_pipeline(input_text)
6
  return result[0]['label']
7
 
8