Spaces:
Runtime error
Runtime error
Rename modules/sentiment_analysis.py to modules/sentiment-analysis.py
Browse files
modules/{sentiment_analysis.py → sentiment-analysis.py}
RENAMED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
from transformers import pipeline
|
| 4 |
|
| 5 |
# Load sentiment pipeline (you can change model to "distilbert-base-uncased-finetuned-sst-2-english")
|
| 6 |
-
sentiment_pipeline = pipeline("sentiment-analysis")
|
| 7 |
|
| 8 |
def analyze_sentiment(texts: list) -> list:
|
| 9 |
"""
|
|
|
|
| 3 |
from transformers import pipeline
|
| 4 |
|
| 5 |
# Load sentiment pipeline (you can change model to "distilbert-base-uncased-finetuned-sst-2-english")
|
| 6 |
+
sentiment_pipeline = pipeline("sentiment-analysis", "distilbert-base-uncased-finetuned-sst-2-english")
|
| 7 |
|
| 8 |
def analyze_sentiment(texts: list) -> list:
|
| 9 |
"""
|