Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -55,23 +55,28 @@ def customize_script_for_location(original_script, location, research_info):
|
|
| 55 |
|
| 56 |
Your task is to customize this script to be specific and relevant to {location}. Guidelines:
|
| 57 |
|
| 58 |
-
1. **
|
| 59 |
-
2. **Local Context**:
|
| 60 |
-
3. **
|
| 61 |
-
4. **
|
| 62 |
-
5. **
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
|
| 64 |
If the script topic isn't naturally location-based:
|
| 65 |
-
-
|
| 66 |
-
-
|
| 67 |
-
-
|
| 68 |
-
- Adapt any universal examples to local equivalents
|
| 69 |
|
| 70 |
If the script IS location-based (real estate, local services, etc.):
|
| 71 |
-
- Replace generic references with specific local ones
|
| 72 |
-
-
|
| 73 |
-
-
|
| 74 |
-
- Use local terminology and references
|
| 75 |
|
| 76 |
Return only the customized script, maintaining the same format and structure as the original.
|
| 77 |
"""
|
|
|
|
| 55 |
|
| 56 |
Your task is to customize this script to be specific and relevant to {location}. Guidelines:
|
| 57 |
|
| 58 |
+
1. **Subtle Integration**: Use the location name SPARINGLY (1-3 times maximum) and only where it feels natural
|
| 59 |
+
2. **Strategic Local Context**: Add 1-2 authentic local details that enhance the message without overwhelming it
|
| 60 |
+
3. **Maintain Original Flow**: Keep the exact same structure, length, and tone of the original script
|
| 61 |
+
4. **Quality Over Quantity**: Better to make fewer, higher-impact local references than to force many
|
| 62 |
+
5. **Natural Feel**: The script should feel like the original with just enough local flavor to be relevant
|
| 63 |
+
|
| 64 |
+
SPECIFIC RULES:
|
| 65 |
+
- Use the location name maximum 2-3 times in the entire script
|
| 66 |
+
- Add only 1-2 specific local references (businesses, landmarks, regulations, or practices)
|
| 67 |
+
- Keep the same conversational tone and length as the original
|
| 68 |
+
- Don't add unnecessary local adjectives or descriptors
|
| 69 |
+
- Focus on enhancing key points rather than adding location references everywhere
|
| 70 |
|
| 71 |
If the script topic isn't naturally location-based:
|
| 72 |
+
- Add the location name once in the opening or closing
|
| 73 |
+
- Include ONE relevant local reference if it naturally fits
|
| 74 |
+
- Don't force location into every sentence
|
|
|
|
| 75 |
|
| 76 |
If the script IS location-based (real estate, local services, etc.):
|
| 77 |
+
- Replace 1-2 generic references with specific local ones
|
| 78 |
+
- Mention local market conditions or regulations only if directly relevant
|
| 79 |
+
- Use local area names sparingly and only where they add real value
|
|
|
|
| 80 |
|
| 81 |
Return only the customized script, maintaining the same format and structure as the original.
|
| 82 |
"""
|