|
@@ -148,7 +148,7 @@ def route_embed():
|
|
|
|
|
|
def route_query(msg):
|
|
|
response = query(msg)
|
|
|
- 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)
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -396,13 +396,13 @@ def inputMsg():
|
|
|
json_res = jsonResToDict(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':
|
|
|
|