Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,9 +4,7 @@ import pandas as pd
|
|
| 4 |
import matplotlib.pyplot as plt
|
| 5 |
from transformers import pipeline
|
| 6 |
|
| 7 |
-
|
| 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):
|