Lesson 5 Event Driven Generation Output Issue

I upload the file to the audio bucket. It successfully triggers the transcribe lambda. After that when the JSON file is uploaded in summarize lambda it creates the text file successfully. But the resulting body is empty I also check each file is created correctly with the expected output else then results.txt. Below is the output when I run the code:

“version”: 0.1,
“sentiment”: “positive”,