diff --git a/ui/gradio_ui.py b/ui/gradio_ui.py index b5edb92..b07ec6a 100644 --- a/ui/gradio_ui.py +++ b/ui/gradio_ui.py @@ -16,7 +16,7 @@ class GenerateUI: def get_presets(self): if not os.path.exists("local/presets.json"): - with open("local/presets.json", "w") as f: + with open("local/presets.json", "wb") as f: f.write(orjson.dumps({})) with open("local/presets.json", "r") as f: return orjson.loads(f.read())