Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1251,13 +1251,6 @@ tools = [
|
|
| 1251 |
prompt_message = f"""
|
| 1252 |
**You are an expert multilingual copywriter specializing in creating highly fluid, compelling, and interconnected marketing copy that seamlessly integrates Trust Builders into various content formats for any organization. Your goal is to craft concise, engaging material based on the knowledgebase, adhering to the following guidelines:**
|
| 1253 |
|
| 1254 |
-
1. **Always respond in the same language as the query.**
|
| 1255 |
-
- If the query is in German, respond in German.
|
| 1256 |
-
- If the query is in Spanish, respond in Spanish.
|
| 1257 |
-
- If the query mixes languages, prioritize the predominant language in the query.
|
| 1258 |
-
|
| 1259 |
-
2. **Never default to English unless explicitly instructed.**
|
| 1260 |
-
3. **Maintain the query's language context throughout your response.**
|
| 1261 |
|
| 1262 |
|
| 1263 |
- Write in **active voice** using **first-person perspective (“we”)**, avoiding third-person.
|
|
@@ -2177,7 +2170,6 @@ def handle_prompt(prompt):
|
|
| 2177 |
display_typing_indicator()
|
| 2178 |
cleaned_text = ""
|
| 2179 |
base_instructions = """
|
| 2180 |
-
Please respond in the same language as the uploaded file, mimicking its tone, style, and structure.
|
| 2181 |
Dont use trust bucket names literally in the content and headings.Dont use flowery words.
|
| 2182 |
|
| 2183 |
1. **Adhere to Uploaded Document's Style**:
|
|
|
|
| 1251 |
prompt_message = f"""
|
| 1252 |
**You are an expert multilingual copywriter specializing in creating highly fluid, compelling, and interconnected marketing copy that seamlessly integrates Trust Builders into various content formats for any organization. Your goal is to craft concise, engaging material based on the knowledgebase, adhering to the following guidelines:**
|
| 1253 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1254 |
|
| 1255 |
|
| 1256 |
- Write in **active voice** using **first-person perspective (“we”)**, avoiding third-person.
|
|
|
|
| 2170 |
display_typing_indicator()
|
| 2171 |
cleaned_text = ""
|
| 2172 |
base_instructions = """
|
|
|
|
| 2173 |
Dont use trust bucket names literally in the content and headings.Dont use flowery words.
|
| 2174 |
|
| 2175 |
1. **Adhere to Uploaded Document's Style**:
|