This commit is contained in:
parent
ec63179832
commit
3811a54242
2
app.py
2
app.py
|
|
@ -45,6 +45,8 @@ def update_customers(index):
|
||||||
if 0 <= index < len(customer_data):
|
if 0 <= index < len(customer_data):
|
||||||
customer = customer_data[index]
|
customer = customer_data[index]
|
||||||
for domain, info in customer.items():
|
for domain, info in customer.items():
|
||||||
|
print(f"..........domain={domain}")
|
||||||
|
print(f"..........info={info}")
|
||||||
if 'customer_industry' in info:
|
if 'customer_industry' in info:
|
||||||
info['customer_industry'] = updated_data.get(f'{domain}_industry', [info['customer_industry']])[0]
|
info['customer_industry'] = updated_data.get(f'{domain}_industry', [info['customer_industry']])[0]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -114,6 +114,5 @@ if not ret:
|
||||||
exit("客服AI员工不能拥有数据库。")
|
exit("客服AI员工不能拥有数据库。")
|
||||||
|
|
||||||
customer_data=buf[key]['customer database']
|
customer_data=buf[key]['customer database']
|
||||||
print(f"..........customer_data={customer_data}")
|
|
||||||
app.set_customer_data(customer_data)
|
app.set_customer_data(customer_data)
|
||||||
app.app.run(host="0.0.0.0", port=5001)
|
app.app.run(host="0.0.0.0", port=5001)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue