rull commited on
Commit
f418c58
·
verified ·
1 Parent(s): 17b81a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ def voicevox_resp():
22
  data = voicevox(text, speaker=speaker)
23
  io = BytesIO(data)
24
 
25
- return send_file(io, as_attachment=True, mimetype="audio/mp3", download_name='rull-pyward_voicevox.mp3')
26
  except Exception as e:
27
  return jsonify({'error': str(e)}), 500
28
 
 
22
  data = voicevox(text, speaker=speaker)
23
  io = BytesIO(data)
24
 
25
+ return send_file(io, as_attachment=True, mimetype="audio/mp3", download_name=f'rull-pyward_voicevox({text.strip()}).mp3')
26
  except Exception as e:
27
  return jsonify({'error': str(e)}), 500
28