Update templates to batch-only and remove single file option
Templates now generate batch_prompt_i2v.json and batch_prompt_vace_extend.json as batch files. Create New JSON always creates batch files since single mode is deprecated. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
10
app.py
10
app.py
@@ -137,16 +137,12 @@ with st.sidebar:
|
||||
|
||||
with st.expander("Create New JSON"):
|
||||
new_filename = st.text_input("Filename", placeholder="my_prompt_vace")
|
||||
is_batch = st.checkbox("Is Batch File?")
|
||||
if st.button("Create"):
|
||||
if not new_filename.endswith(".json"): new_filename += ".json"
|
||||
path = st.session_state.current_dir / new_filename
|
||||
if is_batch:
|
||||
first_item = DEFAULTS.copy()
|
||||
first_item[KEY_SEQUENCE_NUMBER] = 1
|
||||
data = {KEY_BATCH_DATA: [first_item]}
|
||||
else:
|
||||
data = DEFAULTS.copy()
|
||||
first_item = DEFAULTS.copy()
|
||||
first_item[KEY_SEQUENCE_NUMBER] = 1
|
||||
data = {KEY_BATCH_DATA: [first_item]}
|
||||
save_json(path, data)
|
||||
st.rerun()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user