loghugging25 commited on
Commit
c8d26ac
·
1 Parent(s): bb498b2

app.py fixed

Browse files
Files changed (1) hide show
  1. dashboard/app.py +7 -5
dashboard/app.py CHANGED
@@ -368,11 +368,13 @@ def main(cli_from_results_dir, cli_datasource, port):
368
  path_to_load_by_run_function = generated_parquet_filepath
369
  else:
370
  print(f"❌ CRITICAL: Failed to generate or find parquet file at '{generated_parquet_filepath}' after all attempts.")
371
- # path_to_load_by_run_function remains None.
372
- # The run() function's error handling will create an empty DataFrame.
373
- else:
374
- # No directory for processing JSONs was determined. Use the cli_datasource directly.
375
- print(f"Not processing a results directory. Using --datasource option directly: '{cli_datasource}'")
 
 
376
  path_to_load_by_run_function = cli_datasource
377
 
378
  print(f"💡 Final path to be loaded by run() function: '{path_to_load_by_run_function}'")
 
368
  path_to_load_by_run_function = generated_parquet_filepath
369
  else:
370
  print(f"❌ CRITICAL: Failed to generate or find parquet file at '{generated_parquet_filepath}' after all attempts.")
371
+ # path_to_load_by_run_function remains None here, will be handled below.
372
+
373
+ # If path_to_load_by_run_function is still None at this point
374
+ # (either because processing_dir was not set, or all generation attempts failed),
375
+ # default to the original cli_datasource.
376
+ if path_to_load_by_run_function is None:
377
+ print(f"⚠️ Defaulting to cli_datasource '{cli_datasource}' as parquet generation failed or was skipped.")
378
  path_to_load_by_run_function = cli_datasource
379
 
380
  print(f"💡 Final path to be loaded by run() function: '{path_to_load_by_run_function}'")