Update app.py
Browse files
app.py
CHANGED
|
@@ -341,6 +341,8 @@ def generate_video():
|
|
| 341 |
response = ryzedb_chat_avatar(text_prompt, app_id)
|
| 342 |
text_prompt = extract_content(response)
|
| 343 |
text_prompt = text_prompt.replace('\n', ' ').replace('\\n', ' ').strip()
|
|
|
|
|
|
|
| 344 |
app.config['text_prompt'] = text_prompt
|
| 345 |
print('Final output text prompt using ryzedb: ',text_prompt)
|
| 346 |
# events = response.split('\r\n\r\n')
|
|
|
|
| 341 |
response = ryzedb_chat_avatar(text_prompt, app_id)
|
| 342 |
text_prompt = extract_content(response)
|
| 343 |
text_prompt = text_prompt.replace('\n', ' ').replace('\\n', ' ').strip()
|
| 344 |
+
if "No information available" in text_prompt:
|
| 345 |
+
text_prompt = re.sub(r'\\+', '', text_prompt)
|
| 346 |
app.config['text_prompt'] = text_prompt
|
| 347 |
print('Final output text prompt using ryzedb: ',text_prompt)
|
| 348 |
# events = response.split('\r\n\r\n')
|