Avatar's can't be random on the video endpoint since these will be called in batch
This commit is contained in:
@@ -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)
|
||||
"""
|
||||
Reference in New Issue
Block a user