tatianija commited on
Commit
d2d417a
·
verified ·
1 Parent(s): 170e700

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -669,15 +669,15 @@ class IntelligentAgent:
669
  # Process excel files
670
  for excel_file in excel_files:
671
  if self.debug:
672
- print(f"Processing excel: {code_file}")
673
  try:
674
  excel_analysis = self.excel_tool.analyze_excel(excel_file)
675
  attachment_context += f"\n\nEXCEL ANALYSIS ({excel_file}):\n{excel_analysis}\n"
676
 
677
  except Exception as e:
678
  if self.debug:
679
- print(f"Error processing code {code_file}: {e}")
680
- attachment_context += f"\n\nCODE PROCESSING ERROR ({code_file}): {e}\n"
681
  return attachment_context
682
 
683
  def _should_search(self, question: str, attachment_context: str, url_context: str) -> bool:
 
669
  # Process excel files
670
  for excel_file in excel_files:
671
  if self.debug:
672
+ print(f"Processing excel: {excel_file}")
673
  try:
674
  excel_analysis = self.excel_tool.analyze_excel(excel_file)
675
  attachment_context += f"\n\nEXCEL ANALYSIS ({excel_file}):\n{excel_analysis}\n"
676
 
677
  except Exception as e:
678
  if self.debug:
679
+ print(f"Error processing code {excel_file}: {e}")
680
+ attachment_context += f"\n\nEXCEL PROCESSING ERROR ({excel_file}): {e}\n"
681
  return attachment_context
682
 
683
  def _should_search(self, question: str, attachment_context: str, url_context: str) -> bool: