Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import torch
|
|
4 |
|
5 |
# Load sentiment analysis models
|
6 |
english_sentiment_model = pipeline("sentiment-analysis", model="nlptown/bert-base-multilingual-uncased-sentiment")
|
7 |
-
arabic_sentiment_model = pipeline("text-classification", model="CAMeL-Lab/bert-base-arabic-camelbert-
|
8 |
|
9 |
def analyze_sentiment(text, language):
|
10 |
if language == "English":
|
|
|
4 |
|
5 |
# Load sentiment analysis models
|
6 |
english_sentiment_model = pipeline("sentiment-analysis", model="nlptown/bert-base-multilingual-uncased-sentiment")
|
7 |
+
arabic_sentiment_model = pipeline("text-classification", model="CAMeL-Lab/bert-base-arabic-camelbert-da-sentiment")
|
8 |
|
9 |
def analyze_sentiment(text, language):
|
10 |
if language == "English":
|