This commit is contained in:
hailin 2024-10-25 14:44:06 +08:00
parent ec63179832
commit 3811a54242
2 changed files with 2 additions and 1 deletions

2
app.py
View File

@ -45,6 +45,8 @@ def update_customers(index):
if 0 <= index < len(customer_data):
customer = customer_data[index]
for domain, info in customer.items():
print(f"..........domain={domain}")
print(f"..........info={info}")
if 'customer_industry' in info:
info['customer_industry'] = updated_data.get(f'{domain}_industry', [info['customer_industry']])[0]

View File

@ -114,6 +114,5 @@ if not ret:
exit("客服AI员工不能拥有数据库。")
customer_data=buf[key]['customer database']
print(f"..........customer_data={customer_data}")
app.set_customer_data(customer_data)
app.app.run(host="0.0.0.0", port=5001)