Merged in switch-to-elai (pull request #56)
Switch speaking to use ELAI Approved-by: Tiago Ribeiro
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user