项目架构调整,模型全部采用接口调用
This commit is contained in:
@@ -283,9 +283,3 @@ def save_to_local(img_url, save_path=None):
|
||||
file.write(response.content)
|
||||
|
||||
return save_path
|
||||
|
||||
|
||||
def parse_path(img_path):
|
||||
dirname = os.path.dirname(img_path)
|
||||
img_name, ext = os.path.basename(img_path).rsplit('.', 1)
|
||||
return dirname, img_name, ext
|
||||
|
||||
Reference in New Issue
Block a user