Hwilner commited on
Commit
5cf0139
·
verified ·
1 Parent(s): 5b11708

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -4,9 +4,7 @@ import pandas as pd
4
  import matplotlib.pyplot as plt
5
  from transformers import pipeline
6
 
7
- # Use a pipeline with an appropriate model for sentiment analysis
8
- # Replace with a correct model suitable for your needs
9
- model_name = "distilbert-base-uncased-finetuned-sst-2-english"
10
  analyzer = pipeline("text-classification", model=model_name)
11
 
12
  def sentiment_analyzer(review):
 
4
  import matplotlib.pyplot as plt
5
  from transformers import pipeline
6
 
7
+ model_name = "distilbert/distilbert-base-uncased-finetuned-sst-2-english"
 
 
8
  analyzer = pipeline("text-classification", model=model_name)
9
 
10
  def sentiment_analyzer(review):