Remove the noise in the code

This commit is contained in:
Eren
2018-06-05 16:15:57 +02:00
parent 249e2b9a27
commit 6e4145ee4b
3 changed files with 22 additions and 16 deletions
+1 -3
View File
@@ -25,9 +25,7 @@ def tts():
text = request.args.get('text')
print(" > Model input: {}".format(text))
data = synthesizer.tts(text)
return send_file(data,
attachment_filename="testing.wav",
as_attachment=True,
return send_file(data,
mimetype='audio/wav')
if __name__ == '__main__':