Updated the prompts to only add if there are already
This commit is contained in:
2
app.py
2
app.py
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user