Spaces:
Running
Running
app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ from transformers import pipeline
|
|
2 |
import gradio as gr
|
3 |
|
4 |
# Load the sentiment-analysis pipeline
|
5 |
-
sentiment_pipeline = pipeline("
|
6 |
|
7 |
def analyze_sentiment(text):
|
8 |
result = sentiment_pipeline(text)
|
|
|
2 |
import gradio as gr
|
3 |
|
4 |
# Load the sentiment-analysis pipeline
|
5 |
+
sentiment_pipeline = pipeline("sentiment-analysis", model="nlptown/bert-base-multilingual-uncased-sentiment")
|
6 |
|
7 |
def analyze_sentiment(text):
|
8 |
result = sentiment_pipeline(text)
|