fix: 修復 lint 錯誤和代碼格式化
- 移除未使用的導入 (readdirSync, basename, readFileSync, execSync) - 將不需要重新賦值的 let 改為 const - 修復 switch case 區塊中的詞法聲明問題 - 移除未使用的 SAMPLING_RATE 和 sampled 變量 - 移除未使用的 _timeout 參數 - 運行 Prettier 格式化所有文件
This commit is contained in:
parent
e327345ad7
commit
a2512bf29b
6 changed files with 886 additions and 712 deletions
|
|
@ -120,7 +120,7 @@ function checkModelsExist(): boolean {
|
|||
console.warn(`[PDFMathTranslate] Models should be pre-downloaded during Docker build.`);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// 檢查特定的 ONNX 模型檔案
|
||||
const onnxModelPath = join(MODELS_PATH, "doclayout_yolo_docstructbench_imgsz1024.onnx");
|
||||
if (!existsSync(onnxModelPath)) {
|
||||
|
|
@ -128,7 +128,7 @@ function checkModelsExist(): boolean {
|
|||
console.warn(`[PDFMathTranslate] Model should be pre-downloaded during Docker build.`);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue