diff --git a/src/main.py b/src/main.py index 6f09893..55c3c2c 100644 --- a/src/main.py +++ b/src/main.py @@ -103,11 +103,12 @@ def process_agricultural_photos(input_dir: str = "data/raw", output_dir: str = " results_df = pd.DataFrame(results) - # Save to CSV + # Only create CSV file if we have actual results os.makedirs(output_dir, exist_ok=True) timestamp = datetime.now().strftime("%Y%m%d_%H%M%S") output_file = os.path.join(output_dir, f"agricultural_keywords_{timestamp}.csv") + # Save to CSV (only reached if results exist) results_df.to_csv(output_file, index=False) # Calculate processing statistics