Fix video generation

This commit is contained in:
Cristiano Ferreira
2024-11-08 19:05:29 +00:00
parent a3ea91793e
commit b473b30a75
3 changed files with 12 additions and 11 deletions

View File

@@ -14,19 +14,18 @@ class Heygen(IVideoGeneratorService):
def __init__(self, client: AsyncClient, token: str):
pass
"""
self._get_header = {
'X-Api-Key': heygen_token
'X-Api-Key': token
}
self._post_header = {
'X-Api-Key': heygen_token,
'X-Api-Key': token,
'Content-Type': 'application/json'
}
self._http_client = client
self._logger = logging.getLogger(__name__)
"""
async def create_video(self, text: str, avatar: str, title="video_title": str):
async def create_video(self, text: str, avatar: str, title="video_title"):
pass
# POST TO CREATE VIDEO
create_video_url = 'https://api.heygen.com/v2/template/' + avatar + '/generate'