ning8429 commited on
Commit
b036e6b
·
verified ·
1 Parent(s): fb0868b

Update api_server.py

Browse files
Files changed (1) hide show
  1. api_server.py +1 -1
api_server.py CHANGED
@@ -80,7 +80,7 @@ def predict():
80
  # 儲存辨識後的圖片到指定資料夾
81
  for result in results:
82
  # 保存完整圖片
83
- yolo_path = YOLO_DIR + f"results_{Path(result.path).name}"
84
  result.save(yolo_path)
85
  saved_images.append(yolo_path)
86
 
 
80
  # 儲存辨識後的圖片到指定資料夾
81
  for result in results:
82
  # 保存完整圖片
83
+ yolo_path = f'{YOLO_DIR}/results_{Path(result.path).name}'
84
  result.save(yolo_path)
85
  saved_images.append(yolo_path)
86