Husr commited on
Commit
bbf4ff5
·
1 Parent(s): 614a465

update DEBUG mode

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -26,7 +26,7 @@ AOTI_REPO = os.environ.get("AOTI_REPO", "zerogpu-aoti/Z-Image")
26
  AOTI_VARIANT = os.environ.get("AOTI_VARIANT", "fa3")
27
  AOTI_ALLOW_LORA = os.environ.get("AOTI_ALLOW_LORA", "false").lower() == "true"
28
  DEFAULT_CFG = float(os.environ.get("DEFAULT_CFG", "0.0"))
29
- HIDE_STATUS_PANEL = os.environ.get("DEBUG", "false").lower() in {"1", "true", "yes", "on"}
30
 
31
 
32
  def resolve_model_dtype() -> torch.dtype:
@@ -759,7 +759,7 @@ LoRA: zit-mystic-xxx
759
  if compile_error:
760
  details_md_blocks.append(f"**torch.compile error**\n```\n{compile_error}\n```")
761
 
762
- if not HIDE_STATUS_PANEL:
763
  with gr.Column(elem_id="floating_status_panel"):
764
  with gr.Accordion("Status / Debug", open=False):
765
  gr.Markdown(status_md)
 
26
  AOTI_VARIANT = os.environ.get("AOTI_VARIANT", "fa3")
27
  AOTI_ALLOW_LORA = os.environ.get("AOTI_ALLOW_LORA", "false").lower() == "true"
28
  DEFAULT_CFG = float(os.environ.get("DEFAULT_CFG", "0.0"))
29
+ SHOW_STATUS_PANEL = os.environ.get("DEBUG", "false").lower() == "true"
30
 
31
 
32
  def resolve_model_dtype() -> torch.dtype:
 
759
  if compile_error:
760
  details_md_blocks.append(f"**torch.compile error**\n```\n{compile_error}\n```")
761
 
762
+ if SHOW_STATUS_PANEL:
763
  with gr.Column(elem_id="floating_status_panel"):
764
  with gr.Accordion("Status / Debug", open=False):
765
  gr.Markdown(status_md)