Avatar's can't be random on the video endpoint since these will be called in batch

This commit is contained in:
Carlos-Mesquita
2024-11-09 10:33:05 +00:00
parent e955a16abf
commit cf1b676312
4 changed files with 4 additions and 19 deletions

View File

@@ -15,7 +15,7 @@ class ISpeakingController(ABC):
pass
@abstractmethod
async def generate_video(self, text: str, avatar: Optional[str]):
async def generate_video(self, text: str, avatar: str):
pass
@abstractmethod

View File

@@ -19,7 +19,7 @@ class SpeakingController(ISpeakingController):
async def get_avatars(self):
return await self._vid_gen.get_avatars()
async def generate_video(self, text: str, avatar: Optional[str]):
async def generate_video(self, text: str, avatar: str):
return await self._vid_gen.create_video(text, avatar)
async def pool_video(self, vid_id: str):