Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ lemmatizer = WordNetLemmatizer()
|
|
19 |
stop_words = set(stopwords.words('english'))
|
20 |
|
21 |
# Load Hugging Face pipelines
|
22 |
-
sentiment_pipeline = pipeline("sentiment-analysis", model="distilbert-base-uncased-finetuned-sst-2-english")
|
23 |
ner_pipeline = pipeline("ner", model="dbmdz/bert-large-cased-finetuned-conll03-english", aggregation_strategy="simple")
|
24 |
|
25 |
# Function to preprocess text
|
|
|
19 |
stop_words = set(stopwords.words('english'))
|
20 |
|
21 |
# Load Hugging Face pipelines
|
22 |
+
sentiment_pipeline = pipeline("sentiment-analysis", model="distilbert/distilbert-base-uncased-finetuned-sst-2-english")
|
23 |
ner_pipeline = pipeline("ner", model="dbmdz/bert-large-cased-finetuned-conll03-english", aggregation_strategy="simple")
|
24 |
|
25 |
# Function to preprocess text
|