Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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: {
|
| 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 {
|
| 680 |
-
attachment_context += f"\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:
|