hvoss-techfak commited on
Commit
b7dfb35
·
1 Parent(s): c214ec0

race condition fix

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -778,6 +778,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
778
  from queue import Queue, Empty
779
 
780
  log_file = os.path.join(run_output_dir_val, "autoforge_live.log")
 
781
 
782
  cmd_str = " ".join(command)
783
  sentry_sdk.capture_event(
 
778
  from queue import Queue, Empty
779
 
780
  log_file = os.path.join(run_output_dir_val, "autoforge_live.log")
781
+ open(log_file, "w", encoding="utf-8").close()
782
 
783
  cmd_str = " ".join(command)
784
  sentry_sdk.capture_event(