RohitBh commited on
Commit
4a21fca
·
verified ·
1 Parent(s): bd44f79

Update Assignment

Browse files
Files changed (1) hide show
  1. 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", "Dmyadav2001/Sentimental-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)