Spaces:
Runtime error
Runtime error
Update main.py
Browse files
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=
|
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)}")
|