Spaces:
Build error
Build error
Update app.py
#1
by tahaAmeer2434 - opened
app.py
CHANGED
|
@@ -7,7 +7,7 @@ import seaborn as sns
|
|
| 7 |
def classify_review(review):
|
| 8 |
review_lower = review.lower()
|
| 9 |
positive_keywords = ["good", "excellent", "great", "amazing", "wonderful","beautifull","very beautifull", "fantastic"]
|
| 10 |
-
negative_keywords = ["bad", "terrible", "horrible", "awful", "poor", "disappointed","disgusting","unacceptable","worst"]
|
| 11 |
|
| 12 |
if any(word in review_lower for word in positive_keywords):
|
| 13 |
return "positive"
|
|
|
|
| 7 |
def classify_review(review):
|
| 8 |
review_lower = review.lower()
|
| 9 |
positive_keywords = ["good", "excellent", "great", "amazing", "wonderful","beautifull","very beautifull", "fantastic"]
|
| 10 |
+
negative_keywords = ["bad", "terrible", "horrible", "awful", "poor", "disappointed","disgusting","unacceptable","worst","not good"]
|
| 11 |
|
| 12 |
if any(word in review_lower for word in positive_keywords):
|
| 13 |
return "positive"
|