Arafath10 commited on
Commit
f22242d
·
verified ·
1 Parent(s): b3e5fcf

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -47,7 +47,7 @@ async def generate_audio(
47
  )
48
  print(output_file)
49
  # Return the generated audio file as a response
50
- return FileResponse(output_file, media_type="audio/wav", filename="generated_audio.wav")
51
 
52
  except Exception as e:
53
  raise HTTPException(status_code=500, detail=f"Error generating audio: {str(e)}")
 
47
  )
48
  print(output_file)
49
  # Return the generated audio file as a response
50
+ return FileResponse(output_file, media_type="audio/wav", filename=output_file)
51
 
52
  except Exception as e:
53
  raise HTTPException(status_code=500, detail=f"Error generating audio: {str(e)}")