update: pipeline, search, clip, embedding fixes
This commit is contained in:
@@ -25,13 +25,11 @@ impl ThumbnailExtractor {
|
||||
.join("scripts")
|
||||
.join("thumbnail_extractor.py");
|
||||
|
||||
// 使用 venv 中的 Python,確保版本正確且隔離依賴
|
||||
let venv_python = Path::new(env!("CARGO_MANIFEST_DIR"))
|
||||
.join("venv")
|
||||
.join("bin")
|
||||
.join("python");
|
||||
let python_path = std::env::var("MOMENTRY_PYTHON_PATH")
|
||||
.unwrap_or_else(|_| "/opt/homebrew/bin/python3.11".to_string());
|
||||
let python_bin = Path::new(&python_path);
|
||||
|
||||
let output = Command::new(venv_python)
|
||||
let output = Command::new(python_bin)
|
||||
.arg(script_path)
|
||||
.arg(video_path)
|
||||
.arg(uuid)
|
||||
|
||||
Reference in New Issue
Block a user