import os import pandas as pd import sys cust_path = os.path.join(os.path.dirname(os.path.dirname(__file__)), "data", "customer_profile.csv") org_path = os.path.join(os.path.dirname(os.path.dirname(__file__)), "data", "organization_Profile.csv") def get_customer_details(customer_id): df = pd.read_csv(cust_path) customer_row = df[df["Customer_Id"] == customer_id] if customer_row.empty: df = pd.read_csv(org_path) customer_row = df[df["Customer_Id"] == customer_id] if customer_row.empty: return None, None customer_dict = customer_row.iloc[0].to_dict() return customer_row, customer_dict if __name__ == "__main__": if len(sys.argv) > 1: input_text = sys.argv[1] score = get_customer_details(input_text) print(score) # <-- print this so the shell can capture it else: print("No input text provided.")