Spanicin commited on
Commit
657d14d
·
verified ·
1 Parent(s): c3e18ac

Update app_parallel.py

Browse files
Files changed (1) hide show
  1. app_parallel.py +1 -1
app_parallel.py CHANGED
@@ -410,7 +410,7 @@ def stream_results():
410
  print("preprocessed_data",preprocessed_data)
411
  print("args",args)
412
  try:
413
- return stream_with_context(generate_chunks(audio_chunks, preprocessed_data, args, m3u8_path, audio_duration, start_time))
414
  except Exception as e:
415
  return jsonify({'status': 'error', 'message': str(e)}), 500
416
 
 
410
  print("preprocessed_data",preprocessed_data)
411
  print("args",args)
412
  try:
413
+ return Response(stream_with_context(generate_chunks(audio_chunks, preprocessed_data, args, m3u8_path, audio_duration, start_time)),content_type='text/event-stream')
414
  except Exception as e:
415
  return jsonify({'status': 'error', 'message': str(e)}), 500
416