独立ucloud方法,添加ucloud配置类
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
from time import sleep
|
||||
|
||||
import paddle
|
||||
@@ -20,8 +22,10 @@ from photo_review.entity.zx_phhd import ZxPhhd
|
||||
from photo_review.entity.zx_phrec import ZxPhrec
|
||||
from photo_review.util.data_util import handle_date, handle_decimal, handle_department, handle_name, \
|
||||
handle_insurance_type, handle_original_data
|
||||
from photo_review.util.ucloud import get_private_url
|
||||
from photo_review.util.util import get_default_datetime
|
||||
from ucloud import ucloud
|
||||
|
||||
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
|
||||
|
||||
# 关键信息提取
|
||||
@@ -30,7 +34,7 @@ def information_extraction(ie, phrecs):
|
||||
docs = []
|
||||
doc_phrecs = []
|
||||
for phrec in phrecs:
|
||||
pic_path = get_private_url(phrec.cfjaddress)
|
||||
pic_path = ucloud.get_private_url(phrec.cfjaddress)
|
||||
if pic_path:
|
||||
docs.append({"doc": pic_path})
|
||||
doc_phrecs.append(phrec)
|
||||
|
||||
Reference in New Issue
Block a user