Skip to content

Commit

Permalink
Comment align json
Browse files Browse the repository at this point in the history
  • Loading branch information
Shruti1229 committed Jul 27, 2023
1 parent 5841be9 commit cdd169b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion backend/transcript/utils/ytt_align.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion backend/transcript/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit cdd169b

Please sign in to comment.