Fixed level issues
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from fastapi import UploadFile
|
||||
from typing import Dict
|
||||
from typing import Dict, Optional
|
||||
|
||||
from watchfiles import awatch
|
||||
|
||||
@@ -21,8 +21,8 @@ class LevelController(ILevelController):
|
||||
async def get_level_utas(self):
|
||||
return await self._service.get_level_utas()
|
||||
|
||||
async def upload_level(self, file: UploadFile):
|
||||
return await self._service.upload_level(file)
|
||||
async def upload_level(self, exercises: UploadFile, solutions: Optional[UploadFile] = None):
|
||||
return await self._service.upload_level(exercises, solutions)
|
||||
|
||||
async def get_custom_level(self, data: Dict):
|
||||
return await self._service.get_custom_level(data)
|
||||
|
||||
@@ -22,5 +22,5 @@ class SpeakingController(ISpeakingController):
|
||||
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)
|
||||
async def poll_video(self, vid_id: str):
|
||||
return await self._vid_gen.poll_status(vid_id)
|
||||
|
||||
Reference in New Issue
Block a user