Spaces:
Paused
Paused
Update app.py
Browse files3 unmodified lines4567891011123 unmodified linesimport matplotlib.pyplot as pltfrom transformers import pipeline# Use a pipeline with an appropriate model for sentiment analysis# Replace with a correct model suitable for your needsmodel_name = "distilbert-base-uncased-finetuned-sst-2-english"analyzer = pipeline("text-classification", model=model_name)def sentiment_analyzer(review):3 unmodified lines456789103 unmodified linesimport matplotlib.pyplot as pltfrom transformers import pipelinemodel_name = "distilbert/distilbert-base-uncased-finetuned-sst-2-english"analyzer = pipeline("text-classification", model=model_name)def sentiment_analyzer(review):
app.py+1-3