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

@@ -16,7 +16,7 @@ speaking_router = APIRouter()
class Video(BaseModel):
text: str
avatar: Optional[str] = None
avatar: str
@speaking_router.post(
'/media',
@@ -75,13 +75,3 @@ async def get_speaking_task(
second_topic = second_topic if second_topic else random.choice(EducationalContent.MTI_TOPICS)
return await speaking_controller.get_speaking_part(task, topic_or_first_topic, second_topic, difficulty)
"""
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):
return await self._vid_gen.pool_status(vid_id)
"""