Nemai commited on
Commit
304b229
·
verified ·
1 Parent(s): bbafe1c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -6,6 +6,8 @@ from transformers import pipeline
6
  # Load sentiment analysis pipeline
7
  sentiment_pipeline = pipeline("sentiment-analysis")
8
 
 
 
9
  # Define function to use in Gradio
10
  def analyze_sentiment(text):
11
  result = sentiment_pipeline(text)[0]
 
6
  # Load sentiment analysis pipeline
7
  sentiment_pipeline = pipeline("sentiment-analysis")
8
 
9
+ text = "I absolutely love this app! It's amazing."
10
+
11
  # Define function to use in Gradio
12
  def analyze_sentiment(text):
13
  result = sentiment_pipeline(text)[0]