Skip to content

Commit

Permalink
Merge pull request #928 from AI4Bharat/exportVOTR
Browse files Browse the repository at this point in the history
fixed minor bug in complete transcription task
  • Loading branch information
aparna-aa authored Oct 30, 2024
2 parents 35ae670 + 44af236 commit 79dd826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/transcript/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2111,7 +2111,7 @@ def save_transcription(request):
)
for item in transcript_obj.payload["payload"]:
item['verbatim_text'] = item['text']
item['text'] = item['paraphrased_text'] if item['paraphrased_text'] is not None else item['verbatim_text']
item['text'] = item['paraphrased_text'] if 'paraphrased_text' in item and item['paraphrased_text'] is not None else item['verbatim_text']
transcript_obj.save()
task.status = "COMPLETE"
task.save()
Expand Down

0 comments on commit 79dd826

Please sign in to comment.