From 6aeea7b413710508e1b5e785691dcbd4cf9bfb01 Mon Sep 17 00:00:00 2001 From: Kaustubh Maske Patil <37668193+nikochiko@users.noreply.github.com> Date: Thu, 18 Jan 2024 23:29:41 +0530 Subject: [PATCH] fix: copilot should let paid users use 11 labs --- recipes/VideoBots.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/recipes/VideoBots.py b/recipes/VideoBots.py index 61c154a6d..699af2e71 100644 --- a/recipes/VideoBots.py +++ b/recipes/VideoBots.py @@ -853,7 +853,9 @@ def run(self, state: dict) -> typing.Iterator[str | None]: tts_state = dict(state) for text in state.get("raw_tts_text", state["raw_output_text"]): tts_state["text_prompt"] = text - yield from TextToSpeechPage().run(tts_state) + yield from TextToSpeechPage( + request=self.request, run_user=self.run_user + ).run(tts_state) state["output_audio"].append(tts_state["audio_url"]) if not request.input_face: @@ -861,7 +863,9 @@ def run(self, state: dict) -> typing.Iterator[str | None]: lip_state = dict(state) for audio_url in state["output_audio"]: lip_state["input_audio"] = audio_url - yield from LipsyncPage().run(lip_state) + yield from LipsyncPage(request=self.request, run_user=self.run_user).run( + lip_state + ) state["output_video"].append(lip_state["output_video"]) def get_tabs(self):