Update app.py
Browse files
app.py
CHANGED
@@ -350,8 +350,7 @@ else:
|
|
350 |
for key, pattern in patterns.items()
|
351 |
if (match := re.search(pattern, text_for_analysis, re.IGNORECASE))
|
352 |
}
|
353 |
-
|
354 |
-
# ✅ Correct indentation
|
355 |
doc = nlp(text_for_analysis)
|
356 |
financial_entities = [(ent.text, ent.label_) for ent in doc.ents if ent.label_ in ["MONEY", "PERCENT", "ORG", "DATE"]]
|
357 |
|
|
|
350 |
for key, pattern in patterns.items()
|
351 |
if (match := re.search(pattern, text_for_analysis, re.IGNORECASE))
|
352 |
}
|
353 |
+
|
|
|
354 |
doc = nlp(text_for_analysis)
|
355 |
financial_entities = [(ent.text, ent.label_) for ent in doc.ents if ent.label_ in ["MONEY", "PERCENT", "ORG", "DATE"]]
|
356 |
|