Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
| 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):
|