Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1541,8 +1541,6 @@ prompt_message = """
|
|
| 1541 |
You are an expert copywriter specializing in creating high-quality marketing content that integrates Top-Scoring Statements for Each Trust Bucket into various formats. You must include exactly 3 TrustBuilders® for each Trust Bucket and strictly ensure all TrustBuilders® are actively used in the generated content. Please make content longer especially sales conversation using 9 trustbuilders minimum.
|
| 1542 |
|
| 1543 |
=**Listing Top-Scoring Statements**
|
| 1544 |
-
- For each of the six Trust Buckets, list exactly **3 TrustBuilders®**, irrespective of percentages.
|
| 1545 |
-
- If fewer than 3 TrustBuilders® are available for a bucket, repeat the highest-scoring TrustBuilders® until there are 3.
|
| 1546 |
- Use the following format to display top-scoring statements:
|
| 1547 |
Top-scoring statements
|
| 1548 |
**Bucket Name**
|
|
@@ -1551,12 +1549,6 @@ You are an expert copywriter specializing in creating high-quality marketing con
|
|
| 1551 |
- TrustBuilder® Statement 3 [Percentage]
|
| 1552 |
```
|
| 1553 |
|
| 1554 |
-
- Display Top-Scoring Statements:
|
| 1555 |
-
- List the top three TrustBuilders® for each of the six Trust Buckets in the format:
|
| 1556 |
-
**Bucket Name**
|
| 1557 |
-
- Statement 1 [Percentage]
|
| 1558 |
-
- Statement 2 [Percentage]
|
| 1559 |
-
- Statement 3 [Percentage]
|
| 1560 |
Generating Content**
|
| 1561 |
- Integrate **all listed TrustBuilders®** into the requested content format. Strictly minimu 9 trustbuilders must be used to make content longer.
|
| 1562 |
- Do not omit any TrustBuilders®—all must be actively and explicitly included in the content.
|
|
@@ -1616,21 +1608,7 @@ Generating Content**
|
|
| 1616 |
- List of TrustBuilders® Used : list minimum 9 top scoring statements retrieved
|
| 1617 |
- Heuristics Used: List 3-5 relevant heuristics.
|
| 1618 |
- Creative Techniques Used: Highlight creative approaches used.
|
| 1619 |
-
|
| 1620 |
-
**Formatting Example**
|
| 1621 |
-
Top scoring statements
|
| 1622 |
-
**Stability**
|
| 1623 |
-
- High-quality manufacturing [25%]
|
| 1624 |
-
- Consistent reliability [22%]
|
| 1625 |
-
- Durable materials [19%]
|
| 1626 |
-
**Development**
|
| 1627 |
-
- Future-proof technology [30%]
|
| 1628 |
-
- Innovation in design [25%]
|
| 1629 |
-
- Commitment to sustainability [20%]
|
| 1630 |
-
**Relationship**
|
| 1631 |
-
- Long-term partnerships [27%]
|
| 1632 |
-
- Customer-first policies [22%]
|
| 1633 |
-
- Community engagement [19%]
|
| 1634 |
#### **GENERAL QUERIES**
|
| 1635 |
- For blogs or reports, refer to the knowledge base first. Focus on overall flow and structure without mentioning trust metrics unless requested.
|
| 1636 |
|
|
@@ -1888,17 +1866,9 @@ def display_trust_score_2():
|
|
| 1888 |
|
| 1889 |
|
| 1890 |
def update_ai_dataset_selection(selection):
|
| 1891 |
-
"""
|
| 1892 |
-
Updates the dataset selection based on the radio button input.
|
| 1893 |
-
"""
|
| 1894 |
global selected_dataset_ai
|
| 1895 |
-
|
| 1896 |
-
|
| 1897 |
-
if selection == "VW Customers":
|
| 1898 |
-
selected_dataset_ai = vw_customers_state.value[0] # Use the customer dataset
|
| 1899 |
-
elif selection == "VW Prospects":
|
| 1900 |
-
selected_dataset_ai = vw_prospects_state.value[0] # Use the prospects dataset
|
| 1901 |
-
return selection
|
| 1902 |
|
| 1903 |
placeholder_text = """
|
| 1904 |
<b>Play with the Trustifier.AI®</b>
|
|
|
|
| 1541 |
You are an expert copywriter specializing in creating high-quality marketing content that integrates Top-Scoring Statements for Each Trust Bucket into various formats. You must include exactly 3 TrustBuilders® for each Trust Bucket and strictly ensure all TrustBuilders® are actively used in the generated content. Please make content longer especially sales conversation using 9 trustbuilders minimum.
|
| 1542 |
|
| 1543 |
=**Listing Top-Scoring Statements**
|
|
|
|
|
|
|
| 1544 |
- Use the following format to display top-scoring statements:
|
| 1545 |
Top-scoring statements
|
| 1546 |
**Bucket Name**
|
|
|
|
| 1549 |
- TrustBuilder® Statement 3 [Percentage]
|
| 1550 |
```
|
| 1551 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1552 |
Generating Content**
|
| 1553 |
- Integrate **all listed TrustBuilders®** into the requested content format. Strictly minimu 9 trustbuilders must be used to make content longer.
|
| 1554 |
- Do not omit any TrustBuilders®—all must be actively and explicitly included in the content.
|
|
|
|
| 1608 |
- List of TrustBuilders® Used : list minimum 9 top scoring statements retrieved
|
| 1609 |
- Heuristics Used: List 3-5 relevant heuristics.
|
| 1610 |
- Creative Techniques Used: Highlight creative approaches used.
|
| 1611 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1612 |
#### **GENERAL QUERIES**
|
| 1613 |
- For blogs or reports, refer to the knowledge base first. Focus on overall flow and structure without mentioning trust metrics unless requested.
|
| 1614 |
|
|
|
|
| 1866 |
|
| 1867 |
|
| 1868 |
def update_ai_dataset_selection(selection):
|
|
|
|
|
|
|
|
|
|
| 1869 |
global selected_dataset_ai
|
| 1870 |
+
selected_dataset_ai = selection # Save the selected dataset globally
|
| 1871 |
+
return selected_dataset_ai
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1872 |
|
| 1873 |
placeholder_text = """
|
| 1874 |
<b>Play with the Trustifier.AI®</b>
|