Spaces:
Build error
Build error
Update chat.py
Browse files121 unmodified lines1221231241251261271283 unmodified lines132133134135136137138121 unmodified linesprint(f"SQL query executed successfully. Result: {result}")except Exception as e:return f"Error executing SQL query: {str(e)}"# If no result, return an appropriate messageif not result:3 unmodified linesreturn resultexcept Exception as e:return f"Error fetching schema details or processing query: {str(e)}"def answer_question(self, query, visual_query):global global_df121 unmodified lines1221231241251261271281293 unmodified lines133134135136137138139140121 unmodified linesprint(f"SQL query executed successfully. Result: {result}")except Exception as e:print f"Error executing SQL query: {str(e)}"return "Sorry, I couldn't process your request. Please try after some time."# If no result, return an appropriate messageif not result:3 unmodified linesreturn resultexcept Exception as e:print( f"Error fetching schema details or processing query: {str(e)}")return "Sorry, I couldn't process your request. Please try after some time."def answer_question(self, query, visual_query):global global_df
chat.py+4-2