thak123 commited on
Commit
139933c
1 Parent(s): e331e35

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  from transformers import pipeline
3
 
4
  # Load the pre-trained sentiment analysis model
5
- sentiment_analysis = pipeline("sentiment-analysis", model="siebert/sentiment-roberta-large-english")
6
 
7
  # Define the function for sentiment prediction
8
  def predict_sentiment(text):
 
2
  from transformers import pipeline
3
 
4
  # Load the pre-trained sentiment analysis model
5
+ sentiment_analysis = pipeline(model="siebert/sentiment-roberta-large-english")
6
 
7
  # Define the function for sentiment prediction
8
  def predict_sentiment(text):