Fix the "save preset" event

This commit is contained in:
oobabooga 2024-10-01 11:20:48 -07:00
parent 93c250b9b6
commit 49dfa0adaf

View File

@ -74,7 +74,7 @@ def handle_save_preset_confirm_click(filename, contents):
try:
utils.save_file(f"presets/{filename}.yaml", contents)
available_presets = utils.get_available_presets()
output = gr.update(choices=available_presets, value=filename),
output = gr.update(choices=available_presets, value=filename)
except Exception:
output = gr.update()
traceback.print_exc()