Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
# Initialize the sentiment analysis pipeline with your model
|
5 |
-
sentiment_pipeline = pipeline("sentiment-analysis", model="
|
6 |
|
7 |
def analyze_sentiment(text):
|
8 |
result = sentiment_pipeline(text)[0]
|
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
# Initialize the sentiment analysis pipeline with your model
|
5 |
+
sentiment_pipeline = pipeline("sentiment-analysis", model="quocviethere/imdb-roberta")
|
6 |
|
7 |
def analyze_sentiment(text):
|
8 |
result = sentiment_pipeline(text)[0]
|