修正ch-->zh
This commit is contained in:
@ -38,7 +38,7 @@
|
||||
"import sys\n",
|
||||
"sys.path.append('../..')\n",
|
||||
"import utils_en\n",
|
||||
"import utils_ch\n",
|
||||
"import utils_zh\n",
|
||||
"from dotenv import load_dotenv, find_dotenv\n",
|
||||
"_ = load_dotenv(find_dotenv()) # read local .env file\n",
|
||||
"\n",
|
||||
@ -124,13 +124,13 @@
|
||||
"另外,你们这有什么 TVs ?\"\"\"\n",
|
||||
"\n",
|
||||
"# 从问题中抽取商品名\n",
|
||||
"products_by_category = utils_ch.get_products_from_query(customer_msg)\n",
|
||||
"products_by_category = utils_zh.get_products_from_query(customer_msg)\n",
|
||||
"# 将商品名转化为列表\n",
|
||||
"category_and_product_list = utils_ch.read_string_to_list(products_by_category)\n",
|
||||
"category_and_product_list = utils_zh.read_string_to_list(products_by_category)\n",
|
||||
"# 查找商品对应的信息\n",
|
||||
"product_info = utils_ch.get_mentioned_product_info(category_and_product_list)\n",
|
||||
"product_info = utils_zh.get_mentioned_product_info(category_and_product_list)\n",
|
||||
"# 由信息生成回答\n",
|
||||
"assistant_answer = utils_ch.answer_user_msg(user_msg=customer_msg, product_info=product_info)"
|
||||
"assistant_answer = utils_zh.answer_user_msg(user_msg=customer_msg, product_info=product_info)"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user