Updated the prompts to only add if there are already

This commit is contained in:
Tiago Ribeiro
2024-01-23 18:42:14 +00:00
parent ac7ba2edfa
commit 54950e11d2

2
app.py
View File

@@ -602,7 +602,7 @@ def generate_speaking_video():
return { return {
"text": data["question"], "text": data["question"],
"prompts": data["prompts"], "prompts": data["prompts"] if "prompts" in data else [],
"title": data["topic"], "title": data["topic"],
"video_url": sp1_video_url, "video_url": sp1_video_url,
"video_path": sp1_video_path, "video_path": sp1_video_path,