Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1682,30 +1682,46 @@ def handle_save_trustbuilder(content, specified_bucket=None):
|
|
| 1682 |
"""
|
| 1683 |
Handles saving TrustBuilders by detecting or automatically allocating the Trust Bucket.
|
| 1684 |
"""
|
|
|
|
| 1685 |
trust_buckets = {
|
| 1686 |
"Stability": [
|
| 1687 |
-
"
|
| 1688 |
-
"
|
|
|
|
|
|
|
|
|
|
| 1689 |
],
|
| 1690 |
"Development": [
|
| 1691 |
-
"
|
| 1692 |
-
"
|
|
|
|
|
|
|
| 1693 |
],
|
| 1694 |
"Relationship": [
|
| 1695 |
-
"
|
| 1696 |
-
"bond", "interaction", "
|
|
|
|
|
|
|
|
|
|
| 1697 |
],
|
| 1698 |
"Benefit": [
|
| 1699 |
-
"value", "
|
| 1700 |
-
"
|
|
|
|
|
|
|
| 1701 |
],
|
| 1702 |
"Vision": [
|
| 1703 |
-
"goal", "mission", "aspire", "dream", "visionary", "great", "future", "ideal",
|
| 1704 |
-
"
|
|
|
|
|
|
|
| 1705 |
],
|
| 1706 |
"Competence": [
|
| 1707 |
-
"
|
| 1708 |
-
"
|
|
|
|
|
|
|
|
|
|
| 1709 |
]
|
| 1710 |
}
|
| 1711 |
|
|
@@ -1733,9 +1749,7 @@ def handle_save_trustbuilder(content, specified_bucket=None):
|
|
| 1733 |
|
| 1734 |
# Return success response
|
| 1735 |
return f"TrustBuilder allocated to **{bucket}** and saved successfully!"
|
| 1736 |
-
|
| 1737 |
-
|
| 1738 |
-
|
| 1739 |
# Function to update the message counter in a static location
|
| 1740 |
|
| 1741 |
if "email" not in st.session_state:
|
|
|
|
| 1682 |
"""
|
| 1683 |
Handles saving TrustBuilders by detecting or automatically allocating the Trust Bucket.
|
| 1684 |
"""
|
| 1685 |
+
# Trust Bucket definitions with expanded keywords
|
| 1686 |
trust_buckets = {
|
| 1687 |
"Stability": [
|
| 1688 |
+
"track record", "longevity", "size", "stability", "experience", "established", "heritage",
|
| 1689 |
+
"continuity", "reliable", "secure", "trustworthy", "dependable", "durable", "assurance",
|
| 1690 |
+
"foundation", "longstanding", "rooted", "strong", "solid", "proven", "milestones",
|
| 1691 |
+
"geographic footprint", "history", "recognizable", "retention", "consistent", "employees",
|
| 1692 |
+
"families", "recognition", "awards"
|
| 1693 |
],
|
| 1694 |
"Development": [
|
| 1695 |
+
"innovation", "investment", "future-focused", "cutting-edge", "leadership", "growth",
|
| 1696 |
+
"ambition", "strategy", "adaptation", "forward-thinking", "evolve", "progress",
|
| 1697 |
+
"pilot programs", "technology", "training", "pioneering", "future-proof", "patents",
|
| 1698 |
+
"pipeline", "biotechnology", "adapt", "change", "radical", "sustainable"
|
| 1699 |
],
|
| 1700 |
"Relationship": [
|
| 1701 |
+
"collaboration", "support", "empathy", "engagement", "customer-focused", "community",
|
| 1702 |
+
"partnership", "bond", "interaction", "sensitivity", "diversity", "social responsibility",
|
| 1703 |
+
"inclusive", "well-being", "investment", "communication", "feedback", "employee benefits",
|
| 1704 |
+
"customer councils", "loyalty", "wellness", "stakeholder", "inclusive initiatives",
|
| 1705 |
+
"social awareness", "active engagement", "connected"
|
| 1706 |
],
|
| 1707 |
"Benefit": [
|
| 1708 |
+
"value", "benefit", "growth", "success", "advantage", "efficiency", "satisfaction",
|
| 1709 |
+
"reward", "functional value", "emotional value", "unique", "output", "results", "superior",
|
| 1710 |
+
"return", "proposition", "cost savings", "improvements", "enjoyment", "peace of mind",
|
| 1711 |
+
"confidence", "methodologies", "results", "growth strategy", "improvement", "continuous"
|
| 1712 |
],
|
| 1713 |
"Vision": [
|
| 1714 |
+
"goal", "mission", "aspire", "dream", "visionary", "great", "future", "ideal", "ambition",
|
| 1715 |
+
"long-term", "objective", "focus", "drive", "purpose", "values", "integrity",
|
| 1716 |
+
"philanthropy", "social impact", "ethical", "society", "inspire", "sustainability",
|
| 1717 |
+
"impact", "initiatives", "greater good", "common good", "compelling", "volunteering"
|
| 1718 |
],
|
| 1719 |
"Competence": [
|
| 1720 |
+
"expertise", "skills", "innovation", "excellence", "knowledge", "capability",
|
| 1721 |
+
"proficiency", "technical", "problem-solving", "methodologies", "effectiveness",
|
| 1722 |
+
"specialization", "certifications", "creativity", "collaboration", "leadership",
|
| 1723 |
+
"capabilities", "accreditations", "teamwork", "publications", "training", "patents",
|
| 1724 |
+
"high-profile", "results-oriented", "proven ability", "credentials", "creative excellence"
|
| 1725 |
]
|
| 1726 |
}
|
| 1727 |
|
|
|
|
| 1749 |
|
| 1750 |
# Return success response
|
| 1751 |
return f"TrustBuilder allocated to **{bucket}** and saved successfully!"
|
| 1752 |
+
|
|
|
|
|
|
|
| 1753 |
# Function to update the message counter in a static location
|
| 1754 |
|
| 1755 |
if "email" not in st.session_state:
|