waveshaker commited on
Commit
4931cbc
ยท
verified ยท
1 Parent(s): 149c7b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -519,7 +519,7 @@ def generate_workflow(
519
  _timing_store = {}
520
 
521
  _append_log("INFO", "blue", f"Task submitted. Target: {unet_choice}")
522
- yield None, _terminal_html
523
 
524
  try:
525
  effective_seed = int(seed) if seed >= 0 else random.randint(0, 2**32 - 1)
@@ -1442,7 +1442,8 @@ with gr.Blocks(title=MODEL_CONFIG["ui_title"], css=custom_css) as demo:
1442
  char_enable, char_lora_state, char_strength,
1443
  *base_lora_components,
1444
  ],
1445
- outputs=[output, terminal_box],
 
1446
  )
1447
 
1448
 
 
519
  _timing_store = {}
520
 
521
  _append_log("INFO", "blue", f"Task submitted. Target: {unet_choice}")
522
+ yield None, _terminal_html, gr.update(interactive=False)
523
 
524
  try:
525
  effective_seed = int(seed) if seed >= 0 else random.randint(0, 2**32 - 1)
 
1442
  char_enable, char_lora_state, char_strength,
1443
  *base_lora_components,
1444
  ],
1445
+ # ๐Ÿ‘‡ ๅŠ ไธŠ button๏ผŒๆŽฅๆ”ถ็ฌฌไธ‰ไธช่ฟ”ๅ›žๅ€ผ
1446
+ outputs=[output, terminal_box, button],
1447
  )
1448
 
1449