Switch speaking to use ELAI

This commit is contained in:
Cristiano Ferreira
2025-03-04 13:32:35 +00:00
parent 7ceade5d40
commit 6c156ea876

View File

@@ -51,13 +51,22 @@ class DependencyInjector:
with open('ielts_be/services/impl/third_parties/elai/avatars.json', 'r') as file:
elai_avatars = json.load(file)
with open('ielts_be/services/impl/third_parties/elai/elai_conf.json', 'r') as file:
elai_conf = json.load(file)
"""
with open('ielts_be/services/impl/third_parties/heygen/avatars.json', 'r') as file:
heygen_avatars = json.load(file)
with open('ielts_be/services/impl/third_parties/elai/avatars.json', 'r') as file:
elai_avatars = json.load(file)
with open('ielts_be/services/impl/third_parties/elai/conf.json', 'r') as file:
elai_conf = json.load(file)
self._container.vid_gen = providers.Factory(
Heygen, client=self._container.http_client, token=os.getenv("HEY_GEN_TOKEN"), avatars=heygen_avatars
ELAI, client=self._container.http_client,
token=os.getenv("ELAI_TOKEN"),
avatars=elai_avatars,
conf=elai_conf
)
self._container.ai_detector = providers.Factory(
GPTZero, client=self._container.http_client, gpt_zero_key=os.getenv("GPT_ZERO_API_KEY")