More save stuff

This commit is contained in:
somebody
2022-11-28 20:47:34 -06:00
parent 735c4d770c
commit ec854a808a
4 changed files with 20 additions and 10 deletions

View File

@@ -9694,7 +9694,7 @@ def UI_2_test_match():
@logger.catch
def UI_2_audio():
action_id = int(request.args['id']) if 'id' in request.args else len(koboldai_vars.actions)
filename="stories/{}/{}.ogg".format(koboldai_vars.story_id, action_id)
filename = os.path.join(koboldai_vars.save_paths.generated_audio, f"{action_id}.ogg")
if not os.path.exists(filename):
koboldai_vars.actions.gen_audio(action_id)
return send_file(