Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dicklesworthstone committed May 31, 2024
1 parent 4e25233 commit 1b9ba0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion service_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,8 @@ async def get_or_compute_transcript(file: UploadFile,
try:
existing_audio_transcript = await get_transcript_from_db(audio_file_hash)
if existing_audio_transcript:
return AudioTranscriptResponse(**existing_audio_transcript)
existing_audio_transcript_dict = existing_audio_transcript.dict()
return AudioTranscriptResponse(**existing_audio_transcript_dict)
current_position = file.file.tell()
file.file.seek(0, os.SEEK_END)
audio_file_size_mb = file.file.tell() / (1024 * 1024)
Expand Down

0 comments on commit 1b9ba0a

Please sign in to comment.