优化ucloud取文件为空时的判断

This commit is contained in:
2024-06-19 16:52:17 +08:00
parent cd81be7378
commit 501d62f9ce
2 changed files with 4 additions and 2 deletions

View File

@@ -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()