优化ucloud取文件为空时的判断
This commit is contained in:
@@ -38,6 +38,8 @@ def information_extraction(ie, phrecs):
|
||||
if pic_path:
|
||||
docs.append({"doc": pic_path})
|
||||
doc_phrecs.append(phrec)
|
||||
if not docs:
|
||||
return result
|
||||
ie_results = ie(docs)
|
||||
|
||||
now = get_default_datetime()
|
||||
|
||||
Reference in New Issue
Block a user