Spanicin commited on
Commit
4548ca7
·
verified ·
1 Parent(s): b75176e

Update app_parallel.py

Browse files
Files changed (1) hide show
  1. app_parallel.py +1 -1
app_parallel.py CHANGED
@@ -308,7 +308,7 @@ def generate_chunks(audio_chunks, preprocessed_data, args, m3u8_path, audio_dura
308
  if processed_chunks[expected_start_time] is not None:
309
  loop = asyncio.new_event_loop()
310
  asyncio.set_event_loop(loop)
311
- loop.run_until_complete(add_video(processed_chunks[expected_start_time], m3u8_path, audio_duration)
312
  loop.close()
313
  yield json.dumps({'start_time': expected_start_time, 'video_index': yielded_count}).encode('utf-8')
314
  processed_chunks[expected_start_time] = None
 
308
  if processed_chunks[expected_start_time] is not None:
309
  loop = asyncio.new_event_loop()
310
  asyncio.set_event_loop(loop)
311
+ loop.run_until_complete(add_video(processed_chunks[expected_start_time], m3u8_path, audio_duration))
312
  loop.close()
313
  yield json.dumps({'start_time': expected_start_time, 'video_index': yielded_count}).encode('utf-8')
314
  processed_chunks[expected_start_time] = None