AshDavid12 commited on
Commit
a3f668c
·
1 Parent(s): edf4250

Update infer.py

Browse files
Files changed (1) hide show
  1. infer.py +1 -1
infer.py CHANGED
@@ -227,7 +227,7 @@ async def websocket_transcribe(websocket: WebSocket):
227
 
228
 
229
  # Call the transcription function with the last processed time
230
- partial_result, last_transcribed_time = transcribe_core_ws(temp_audio_file.name, processed_segments)
231
  accumulated_audio_time = 0 # Reset the accumulated audio time
232
  processed_segments.extend(partial_result['new_segments'])
233
 
 
227
 
228
 
229
  # Call the transcription function with the last processed time
230
+ partial_result, last_transcribed_time = transcribe_core_ws(temp_audio_file.name, last_transcribed_time)
231
  accumulated_audio_time = 0 # Reset the accumulated audio time
232
  processed_segments.extend(partial_result['new_segments'])
233