Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -155,7 +155,14 @@ def extract_keywords(text: str) -> list[str]:
|
|
| 155 |
clean_text = re.sub(r"[^\w\sáéíóúñÁÉÍÓÚÑ]", "", text.lower())
|
| 156 |
kws = local_kw_model.extract_keywords(clean_text, stop_words="spanish", top_n=5)
|
| 157 |
keywords = [k.replace(" ", "+") for k, _ in kws if k]
|
| 158 |
-
return keywords if keywords else ["
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 159 |
except Exception as e:
|
| 160 |
logger.error(f"Error extrayendo keywords: {e}")
|
| 161 |
return ["mystery", "conspiracy", "alien", "UFO", "secret", "cover-up", "illusion", "paranoia",
|
|
|
|
| 155 |
clean_text = re.sub(r"[^\w\sáéíóúñÁÉÍÓÚÑ]", "", text.lower())
|
| 156 |
kws = local_kw_model.extract_keywords(clean_text, stop_words="spanish", top_n=5)
|
| 157 |
keywords = [k.replace(" ", "+") for k, _ in kws if k]
|
| 158 |
+
return keywords if keywords else ["mystery", "conspiracy", "alien", "UFO", "secret", "cover-up", "illusion", "paranoia",
|
| 159 |
+
"secret society", "lie", "simulation", "matrix", "terror", "darkness", "shadow", "enigma",
|
| 160 |
+
"urban legend", "unknown", "hidden", "mistrust", "experiment", "government", "control",
|
| 161 |
+
"surveillance", "propaganda", "deception", "whistleblower", "anomaly", "extraterrestrial",
|
| 162 |
+
"shadow government", "cabal", "deep state", "new world order", "mind control", "brainwashing",
|
| 163 |
+
"disinformation", "false flag", "assassin", "black ops", "anomaly", "men in black", "abduction",
|
| 164 |
+
"hybrid", "ancient aliens", "hollow earth", "simulation theory", "alternate reality", "predictive programming",
|
| 165 |
+
"symbolism", "occult", "eerie", "haunting", "unexplained", "forbidden knowledge", "redacted", "conspiracy theorist"]
|
| 166 |
except Exception as e:
|
| 167 |
logger.error(f"Error extrayendo keywords: {e}")
|
| 168 |
return ["mystery", "conspiracy", "alien", "UFO", "secret", "cover-up", "illusion", "paranoia",
|