From 54950e11d2ef4b7125adad57c9620d7f15d50bfa Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Tue, 23 Jan 2024 18:42:14 +0000 Subject: [PATCH] Updated the prompts to only add if there are already --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 7a897f7..db865e1 100644 --- a/app.py +++ b/app.py @@ -602,7 +602,7 @@ def generate_speaking_video(): return { "text": data["question"], - "prompts": data["prompts"], + "prompts": data["prompts"] if "prompts" in data else [], "title": data["topic"], "video_url": sp1_video_url, "video_path": sp1_video_path,