Update questions to new formula
This commit is contained in:
@@ -8,6 +8,8 @@ from firebase_admin import credentials, firestore
|
||||
|
||||
from dotenv import load_dotenv
|
||||
|
||||
from heygen.AvatarEnum import AvatarEnum
|
||||
|
||||
load_dotenv()
|
||||
|
||||
# Initialize Firebase Admin SDK
|
||||
@@ -61,17 +63,15 @@ FIREBASE_SPEAKING_VIDEO_FILES_PATH = 'speaking_videos/'
|
||||
|
||||
# 5
|
||||
questions_json = {
|
||||
"topic": "Health and Lifestyle",
|
||||
"topic": "Hobbies and Interests",
|
||||
"questions": [
|
||||
"What are some of the key factors that contribute to a healthy lifestyle?",
|
||||
"In what ways can technology help individuals monitor and improve their health?",
|
||||
"How has the concept of a 'healthy lifestyle' evolved in recent years, and what role does society play in promoting it?"
|
||||
"What do you like to do in your free time? Do you have any hobbies or interests? Are there any new hobbies you would like to try in the future?",
|
||||
]
|
||||
}
|
||||
|
||||
questions = []
|
||||
for question in questions_json["questions"]:
|
||||
result = create_video(question)
|
||||
result = create_video(question, AvatarEnum.MATTHEW_NOAH)
|
||||
if result is not None:
|
||||
sound_file_path = VIDEO_FILES_PATH + result
|
||||
firebase_file_path = FIREBASE_SPEAKING_VIDEO_FILES_PATH + result
|
||||
|
||||
Reference in New Issue
Block a user