Spaces:
Sleeping
Sleeping
Commit
•
116a522
1
Parent(s):
3003b3a
Update app.py
Browse files
app.py
CHANGED
@@ -239,8 +239,7 @@ with gr.Blocks() as demo:
|
|
239 |
gr.Markdown("Preset loaded and validated")
|
240 |
if load_extra is not None:
|
241 |
gr.Markdown(load_extra)
|
242 |
-
prompt_map = builtin_prompts
|
243 |
-
prompt_map.update({p["identifier"]: p for p in preset["prompts"]})
|
244 |
gr.Markdown("# Preset")
|
245 |
for order in (next(o for o in preset["prompt_order"] if o["character_id"] == 100001)["order"] if isinstance(preset["prompt_order"], list) else preset["prompt_order"]):
|
246 |
prompt = prompt_map[order["identifier"]]
|
|
|
239 |
gr.Markdown("Preset loaded and validated")
|
240 |
if load_extra is not None:
|
241 |
gr.Markdown(load_extra)
|
242 |
+
prompt_map = {p["identifier"]: p for p in builtin_prompts+preset["prompts"]}
|
|
|
243 |
gr.Markdown("# Preset")
|
244 |
for order in (next(o for o in preset["prompt_order"] if o["character_id"] == 100001)["order"] if isinstance(preset["prompt_order"], list) else preset["prompt_order"]):
|
245 |
prompt = prompt_map[order["identifier"]]
|