Arafath10 commited on
Commit
88fc5fe
·
verified ·
1 Parent(s): 75f99e0

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -50,7 +50,7 @@ async def generate_audio(
50
  )
51
  print(output_file)
52
  # Read the file content and yield as binary
53
- with open(f"chunk_{idx}.wav", "rb") as audio_file:
54
  yield audio_file.read()
55
  # Optionally delete the file after streaming
56
  os.remove(output_file)
 
50
  )
51
  print(output_file)
52
  # Read the file content and yield as binary
53
+ with open(output_file, "rb") as audio_file:
54
  yield audio_file.read()
55
  # Optionally delete the file after streaming
56
  os.remove(output_file)