Change speaking to receive avatar from frontend.
This commit is contained in:
@@ -117,9 +117,9 @@ def create_videos_and_save_to_db(exercises, template, id):
|
||||
save_to_db_with_id("speaking", template, id)
|
||||
app.app.logger.info('Saved speaking to DB with id ' + id + " : " + str(template))
|
||||
|
||||
def create_video(text, avatar: AvatarEnum):
|
||||
def create_video(text, avatar):
|
||||
# POST TO CREATE VIDEO
|
||||
create_video_url = 'https://api.heygen.com/v2/template/' + avatar.value + '/generate'
|
||||
create_video_url = 'https://api.heygen.com/v2/template/' + avatar + '/generate'
|
||||
data = {
|
||||
"test": False,
|
||||
"caption": False,
|
||||
|
||||
Reference in New Issue
Block a user