Problemunvalidated
it waits for stream_results to finish and then returns response like that instead of gradual streaming result — return StreamingResponse(stream_results(), media_type='application/x-ndjson'). Tension: print works as expected and outputs the result as it is generated. But yield does not. Outcome: What am I doing wrong?
a2a04675-3a99-4130-8c89-9ecabee1c927
it waits for stream_results to finish and then returns response like that instead of gradual streaming result — return StreamingResponse(stream_results(), media_type='application/x-ndjson'). Tension: print works as expected and outputs the result as it is generated. But yield does not. Outcome: What am I doing wrong?