Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -308,22 +308,23 @@ class ContentGenerator:
|
|
| 308 |
|
| 309 |
def generate_hashtags(tradition, theme):
|
| 310 |
"""Generate relevant hashtags"""
|
| 311 |
-
|
| 312 |
-
|
| 313 |
-
|
| 314 |
-
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
|
| 318 |
-
|
| 319 |
-
|
| 320 |
-
|
| 321 |
-
|
| 322 |
-
|
| 323 |
-
|
| 324 |
-
|
| 325 |
-
|
| 326 |
-
|
|
|
|
| 327 |
|
| 328 |
|
| 329 |
def main():
|
|
|
|
| 308 |
|
| 309 |
def generate_hashtags(tradition, theme):
|
| 310 |
"""Generate relevant hashtags"""
|
| 311 |
+
base_tags = ["#spirituality", "#mindfulness", "#wisdom", "#inspiration", "#meditation"]
|
| 312 |
+
tradition_tags = {
|
| 313 |
+
"Buddhism": ["#buddhism", "#zen", "#buddhist", "#enlightenment", "#dharma"],
|
| 314 |
+
"Hinduism": ["#hinduism", "#vedanta", "#yoga", "#sanskrit", "#consciousness"],
|
| 315 |
+
"Taoism": ["#taoism", "#tao", "#balance", "#harmony", "#philosophy"],
|
| 316 |
+
"Sufi Wisdom": ["#sufi", "#rumi", "#mysticism", "#spiritualpath", "#divine"],
|
| 317 |
+
"Modern Spirituality": ["#spiritual", "#awakening", "#higherconsciousness", "#growth", "#innerpeace"]
|
| 318 |
+
}
|
| 319 |
+
theme_tags = {
|
| 320 |
+
"Inner Peace": ["#peace", "#calm", "#serenity", "#tranquility"],
|
| 321 |
+
"Mindfulness": ["#mindful", "#present", "#awareness", "#conscious"],
|
| 322 |
+
"Wisdom": ["#wisdom", "#truth", "#knowledge", "#insight"],
|
| 323 |
+
"Transformation": ["#transform", "#change", "#evolution", "#journey"]
|
| 324 |
+
}
|
| 325 |
+
custom_tags = tradition_tags.get(tradition, []) + theme_tags.get(theme, [])
|
| 326 |
+
return list(set(base_tags + custom_tags))[:15]
|
| 327 |
+
|
| 328 |
|
| 329 |
|
| 330 |
def main():
|