|
@@ -148,7 +148,7 @@ def route_embed():
|
|
|
|
|
|
def route_query(msg):
|
|
|
response = query(msg)
|
|
|
- print(response)
|
|
|
+ # print(response)
|
|
|
if response:
|
|
|
resObj = {}
|
|
|
resObj["data"] = response
|
|
@@ -219,7 +219,7 @@ def upload_file():
|
|
|
hotword='test')
|
|
|
texts = [item['text'] for item in res]
|
|
|
msg = ' '.join(texts)
|
|
|
- print(msg)
|
|
|
+ # print(msg)
|
|
|
#语音转文字模型2
|
|
|
# res = inference_pipeline(file_path)
|
|
|
# # print(res)
|
|
@@ -396,13 +396,13 @@ def inputMsg():
|
|
|
json_res = jsonResToDict(json_res)
|
|
|
# print(json_res)
|
|
|
else:
|
|
|
- json_res = "1未找到相关数据"
|
|
|
+ json_res = "未找到相关数据"
|
|
|
json_res = jsonResToDict_wrong(json_res)
|
|
|
except:
|
|
|
- json_res = "2未找到相关数据"
|
|
|
+ json_res = "未找到相关数据"
|
|
|
json_res = jsonResToDict_wrong(json_res)
|
|
|
else:
|
|
|
- json_res = "3未找到相关数据"
|
|
|
+ json_res = "未找到相关数据"
|
|
|
json_res = jsonResToDict_wrong(json_res)
|
|
|
elif type == 'answer':
|
|
|
# json_res = route_query(msg)
|