fixed error
Browse files
App/Transcription/TranscriptionRoutes.py
CHANGED
@@ -17,7 +17,7 @@ from App.Users.Schemas import UserSchema
|
|
17 |
from .Model import Transcriptions
|
18 |
from .Utils.fastapi_tasks import perform_background_task
|
19 |
import yt_dlp
|
20 |
-
from fastapi_jwt_auth import
|
21 |
from App.Embedding.utils.Initialize import delete_documents
|
22 |
|
23 |
# from .Model import User
|
@@ -170,7 +170,7 @@ async def get_status(task_id):
|
|
170 |
else:
|
171 |
try:
|
172 |
_trans = TranscriptionMetadata(**task_result.result)
|
173 |
-
percentage=
|
174 |
except:
|
175 |
return {"payload": None, "message": "Nothing found", "code": 200}
|
176 |
await entry.update(**_trans.dict())
|
|
|
17 |
from .Model import Transcriptions
|
18 |
from .Utils.fastapi_tasks import perform_background_task
|
19 |
import yt_dlp
|
20 |
+
from fastapi_jwt_auth import AuthJWThy
|
21 |
from App.Embedding.utils.Initialize import delete_documents
|
22 |
|
23 |
# from .Model import User
|
|
|
170 |
else:
|
171 |
try:
|
172 |
_trans = TranscriptionMetadata(**task_result.result)
|
173 |
+
percentage=_trans.percentage
|
174 |
except:
|
175 |
return {"payload": None, "message": "Nothing found", "code": 200}
|
176 |
await entry.update(**_trans.dict())
|