Update Assignment
Browse files- Assignment +1 -1
Assignment
CHANGED
|
@@ -9,7 +9,7 @@ from wordcloud import WordCloud
|
|
| 9 |
|
| 10 |
# Function to analyze sentiment using the custom Hugging Face pipeline
|
| 11 |
def analyze_sentiment_hf(text):
|
| 12 |
-
hf_pipeline = pipeline("sentiment-analysis", "
|
| 13 |
if len(text) > 512:
|
| 14 |
text = text[:511]
|
| 15 |
sentiment_result = hf_pipeline(text)
|
|
|
|
| 9 |
|
| 10 |
# Function to analyze sentiment using the custom Hugging Face pipeline
|
| 11 |
def analyze_sentiment_hf(text):
|
| 12 |
+
hf_pipeline = pipeline("sentiment-analysis", "RohitBh/Sentimental_Analysis")
|
| 13 |
if len(text) > 512:
|
| 14 |
text = text[:511]
|
| 15 |
sentiment_result = hf_pipeline(text)
|