Sanket17 commited on
Commit
35a93a9
·
verified ·
1 Parent(s): ebace7c

Update src/input_analysis/competitor-analysis/competitor_analysis.py

Browse files
src/input_analysis/competitor-analysis/competitor_analysis.py CHANGED
@@ -182,7 +182,7 @@ for image_path in image_paths:
182
  })
183
 
184
  # Write structured output to file
185
- with open("Output File/json/competitor_analysis.json", "w") as f:
186
  json.dump(output_structure, f, indent=4)
187
 
188
  logging.info("Analysis completed and saved to competitor_analysis.json")
@@ -232,6 +232,6 @@ def json_to_excel(json_file, excel_file):
232
  df.to_excel(excel_file, index=False)
233
  print(f"Data successfully written to {excel_file}")
234
  # Example usage
235
- json_file_path = "Output File/json/competitor_analysis.json" # Input JSON file
236
- excel_file_path = "Output File/excel/competitor_analysis.xlsx" # Output Excel file
237
  json_to_excel(json_file_path, excel_file_path)
 
182
  })
183
 
184
  # Write structured output to file
185
+ with open("Output_File/json/competitor_analysis.json", "w") as f:
186
  json.dump(output_structure, f, indent=4)
187
 
188
  logging.info("Analysis completed and saved to competitor_analysis.json")
 
232
  df.to_excel(excel_file, index=False)
233
  print(f"Data successfully written to {excel_file}")
234
  # Example usage
235
+ json_file_path = "Output_File/json/competitor_analysis.json" # Input JSON file
236
+ excel_file_path = "Output_File/excel/competitor_analysis.xlsx" # Output Excel file
237
  json_to_excel(json_file_path, excel_file_path)