Update questions to new formula

This commit is contained in:
Cristiano Ferreira
2023-09-27 20:23:41 +01:00
parent e7eb7c96ba
commit 51085619ee
6 changed files with 688 additions and 301 deletions

View File

@@ -4,6 +4,8 @@ import time
from dotenv import load_dotenv
from heygen.AvatarEnum import AvatarEnum
load_dotenv()
# Get HeyGen token
@@ -29,10 +31,10 @@ JEROME_RYAN = "ad41feb2a5c4483085525e3d8907f512"
TYLER_CHRISTOPHER = "03c796f8ed274bb38f19e893bcbc6121"
def create_video(text):
def create_video(text, avatar: AvatarEnum):
# POST TO CREATE VIDEO
data = {
"template_id": MATTHEW_NOAH,
"template_id": avatar,
"title": "video_title",
"test": False,
"variables": [