修正ch-->zh

This commit is contained in:
nowadays0421
2023-06-06 23:18:07 +08:00
parent 0e3483d903
commit 69ec8458df
3 changed files with 10 additions and 10 deletions

View File

@ -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)"
]
},
{