Spaces:
Running
Running
Update eb_agent_module.py
Browse files- eb_agent_module.py +3 -3
eb_agent_module.py
CHANGED
@@ -620,9 +620,9 @@ class EmployerBrandingAgent:
|
|
620 |
final_response = response_text + chart_info
|
621 |
return final_response, True
|
622 |
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
|
627 |
async def _generate_enhanced_response(self, query: str, pandas_result: str = "", query_type: str = "general") -> str:
|
628 |
"""Generate enhanced response combining PandasAI results with RAG context"""
|
|
|
620 |
final_response = response_text + chart_info
|
621 |
return final_response, True
|
622 |
|
623 |
+
except Exception as e:
|
624 |
+
logging.error(f"Error in PandasAI processing: {e}", exc_info=True)
|
625 |
+
return f"I encountered an error while analyzing the data: {str(e)}", False
|
626 |
|
627 |
async def _generate_enhanced_response(self, query: str, pandas_result: str = "", query_type: str = "general") -> str:
|
628 |
"""Generate enhanced response combining PandasAI results with RAG context"""
|