Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -376,9 +376,9 @@ You are an expert copywriter specializing in creating high-quality marketing con
|
|
| 376 |
- **TrustBuilder® Integration:** Find and list minimum 15 trust builders points directly followed by relevant source links.
|
| 377 |
- **Intro Line:** Start with "Here are some [Bucket name] TrustBuilders(r). Let me know if you want to refine the results or find more.."
|
| 378 |
- **TrustBuilders® Format:** Categorize the TrustBuilders® into the following key Headings:
|
| 379 |
-
-
|
| 380 |
-
-
|
| 381 |
-
-
|
| 382 |
|
| 383 |
- **Style and Structure:**
|
| 384 |
- Start each bullet point directly without sub-heading.
|
|
@@ -592,7 +592,7 @@ if prompt :
|
|
| 592 |
try:
|
| 593 |
# Generate response using the agent executor
|
| 594 |
output = agent_executor.invoke({
|
| 595 |
-
"input": f"{prompt} .Follow the given guidelines.",
|
| 596 |
|
| 597 |
"chat_history": st.session_state.chat_history
|
| 598 |
})
|
|
@@ -607,7 +607,7 @@ if prompt :
|
|
| 607 |
trust_tip, suggestion = get_trust_tip_and_suggestion()
|
| 608 |
|
| 609 |
|
| 610 |
-
st.
|
| 611 |
st.markdown("---") # Add a separator
|
| 612 |
st.markdown(f"**Trust Tip**: {trust_tip}")
|
| 613 |
st.markdown(f"**Suggestion**: {suggestion}")
|
|
|
|
| 376 |
- **TrustBuilder® Integration:** Find and list minimum 15 trust builders points directly followed by relevant source links.
|
| 377 |
- **Intro Line:** Start with "Here are some [Bucket name] TrustBuilders(r). Let me know if you want to refine the results or find more.."
|
| 378 |
- **TrustBuilders® Format:** Categorize the TrustBuilders® into the following key Headings:
|
| 379 |
+
- ###Organization:List details about the organization .
|
| 380 |
+
- ###People: List individuals associated with the TrustBuilder® .
|
| 381 |
+
- ###Offers/Services:** Detail the offers or services provided .
|
| 382 |
|
| 383 |
- **Style and Structure:**
|
| 384 |
- Start each bullet point directly without sub-heading.
|
|
|
|
| 592 |
try:
|
| 593 |
# Generate response using the agent executor
|
| 594 |
output = agent_executor.invoke({
|
| 595 |
+
"input": f"{prompt} .Follow the given guidelines.Handle problematic text (Usually it is related to numbers and text nearby )clean it up so that it is readable and properly formatted for display in a web application. "",
|
| 596 |
|
| 597 |
"chat_history": st.session_state.chat_history
|
| 598 |
})
|
|
|
|
| 607 |
trust_tip, suggestion = get_trust_tip_and_suggestion()
|
| 608 |
|
| 609 |
|
| 610 |
+
st.markdown(cleaned_text, unsafe_allow_html=True)
|
| 611 |
st.markdown("---") # Add a separator
|
| 612 |
st.markdown(f"**Trust Tip**: {trust_tip}")
|
| 613 |
st.markdown(f"**Suggestion**: {suggestion}")
|