Skip to content

Commit

Permalink
changes for transcribed_json
Browse files Browse the repository at this point in the history
  • Loading branch information
KunalTiwary committed Jun 6, 2024
1 parent a91547f commit ba7a4f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/projects/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,9 +557,9 @@ def convert_time_to_seconds(time_str):
def parse_json_for_ste(input_data_id):
data_item = SpeechConversation.objects.get(pk=input_data_id)
data = (
json.loads(data_item.final_transcribed_json)
if isinstance(data_item.final_transcribed_json, str)
else data_item.final_transcribed_json
json.loads(data_item.transcribed_json)
if isinstance(data_item.transcribed_json, str)
else data_item.transcribed_json
)
if not data:
return []
Expand Down

0 comments on commit ba7a4f6

Please sign in to comment.