yeq6x commited on
Commit
bb4717a
·
1 Parent(s): 96f0e61

Enhance run_training function in app.py to emit an initial log message upon invocation. This update improves user feedback by confirming the start of the training process and maintains existing error handling for required output names.

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -664,9 +664,11 @@ def run_training(
664
  ) -> Iterable[tuple]:
665
  global _ACTIVE_PROC, _ACTIVE_PGID
666
  # Basic validation
667
- log_buf = ""
668
  ckpts: List[str] = []
669
  artifacts: List[str] = []
 
 
670
  if not output_name.strip():
671
  log_buf += "[ERROR] OUTPUT NAME is required.\n"
672
  yield (log_buf, ckpts, artifacts)
 
664
  ) -> Iterable[tuple]:
665
  global _ACTIVE_PROC, _ACTIVE_PGID
666
  # Basic validation
667
+ log_buf = "[QIE] Start Training invoked.\n"
668
  ckpts: List[str] = []
669
  artifacts: List[str] = []
670
+ # Emit an initial line so UI can confirm invocation
671
+ yield (log_buf, ckpts, artifacts)
672
  if not output_name.strip():
673
  log_buf += "[ERROR] OUTPUT NAME is required.\n"
674
  yield (log_buf, ckpts, artifacts)