Update app.py
Browse files
app.py
CHANGED
|
@@ -120,7 +120,7 @@ def generate_topic_from_trends(trending_topics: List[str]) -> str:
|
|
| 120 |
"2. Has high viral potential (emotional, surprising, or controversial)\n"
|
| 121 |
"3. Is suitable for a 60-second video format\n"
|
| 122 |
"4. Appeals to a broad audience\n"
|
| 123 |
-
"5. Is suitable for informative video (
|
| 124 |
"6. Is specific enough to be interesting but broad enough to allow creative interpretation\n\n"
|
| 125 |
"Respond with ONLY the topic (no explanations, no bullet points, no numbering).\n"
|
| 126 |
"The topic should be 5-10 words maximum.\n\n"
|
|
@@ -176,6 +176,8 @@ def clean_generated_script(script: str, prompt: str) -> str:
|
|
| 176 |
r'BEGIN SCRIPT:.*?(\n\n|$)',
|
| 177 |
r'NO PROMOTIONAL CONTENT.*?(\n\n|$)',
|
| 178 |
r'FOCUS ON EDUCATIONAL VALUE.*?(\n\n|$)',
|
|
|
|
|
|
|
| 179 |
]
|
| 180 |
|
| 181 |
for pattern in patterns_to_remove:
|
|
|
|
| 120 |
"2. Has high viral potential (emotional, surprising, or controversial)\n"
|
| 121 |
"3. Is suitable for a 60-second video format\n"
|
| 122 |
"4. Appeals to a broad audience\n"
|
| 123 |
+
"5. Is suitable for informative video (not promotion, not service, not event, not product, not sale)\n"
|
| 124 |
"6. Is specific enough to be interesting but broad enough to allow creative interpretation\n\n"
|
| 125 |
"Respond with ONLY the topic (no explanations, no bullet points, no numbering).\n"
|
| 126 |
"The topic should be 5-10 words maximum.\n\n"
|
|
|
|
| 176 |
r'BEGIN SCRIPT:.*?(\n\n|$)',
|
| 177 |
r'NO PROMOTIONAL CONTENT.*?(\n\n|$)',
|
| 178 |
r'FOCUS ON EDUCATIONAL VALUE.*?(\n\n|$)',
|
| 179 |
+
r'FOCUS ON INFORMATIVE CONTENT.*?(\n\n|$)',
|
| 180 |
+
r'FOCUS ON MEANINGFUL VIDEO SCRIPT.*?(\n\n|$)',
|
| 181 |
]
|
| 182 |
|
| 183 |
for pattern in patterns_to_remove:
|