Sanket17 commited on
Commit
ebace7c
·
verified ·
1 Parent(s): 5f15c09

Update src/input_analysis/product-analysis/product_analysis.py

Browse files
src/input_analysis/product-analysis/product_analysis.py CHANGED
@@ -179,7 +179,7 @@ for image_path in image_paths:
179
  })
180
 
181
  # Write structured output to file
182
- with open("Output File/json/product_analysis.json", "w") as f:
183
  json.dump(output_structure, f, indent=4)
184
 
185
 
@@ -231,6 +231,6 @@ def json_to_excel(json_file, excel_file):
231
  print(f"Data successfully written to {excel_file}")
232
 
233
  # Example usage
234
- json_file_path = "Output File/json/product_analysis.json" # Input JSON file
235
- excel_file_path = "Output File/excel/product_analysis.xlsx" # Output Excel file
236
  json_to_excel(json_file_path, excel_file_path)
 
179
  })
180
 
181
  # Write structured output to file
182
+ with open("Output_File/json/product_analysis.json", "w") as f:
183
  json.dump(output_structure, f, indent=4)
184
 
185
 
 
231
  print(f"Data successfully written to {excel_file}")
232
 
233
  # Example usage
234
+ json_file_path = "Output_File/json/product_analysis.json" # Input JSON file
235
+ excel_file_path = "Output_File/excel/product_analysis.xlsx" # Output Excel file
236
  json_to_excel(json_file_path, excel_file_path)