diff --git a/backend/transcript/utils/ytt_align.py b/backend/transcript/utils/ytt_align.py index b08224f8..35416e5b 100644 --- a/backend/transcript/utils/ytt_align.py +++ b/backend/transcript/utils/ytt_align.py @@ -2,7 +2,6 @@ import traceback import requests import logging -from config import asr_url, english_asr_url import subprocess import json from config import align_json_url diff --git a/backend/transcript/views.py b/backend/transcript/views.py index 92a85c1d..d2958bd7 100644 --- a/backend/transcript/views.py +++ b/backend/transcript/views.py @@ -1577,7 +1577,7 @@ def save_transcription(request): num_words += len(cleaned_text.split(" ")) transcript_obj.payload["word_count"] = num_words transcript_obj.save() - celery_align_json.delay(transcript_obj.id) + # celery_align_json.delay(transcript_obj.id) return Response( { "task_id": task_id, @@ -1620,6 +1620,10 @@ def save_transcription(request): ) @api_view(["GET"]) def get_word_aligned_json(request): + return Response( + {"message": "Soemthing went wrong!"}, + status=status.HTTP_400_BAD_REQUEST, + ) video_id = request.query_params.get("video_id") if video_id is None: