Files
html/api/ambre-install-deps.php
opus 03c2699122
Some checks failed
WEVAL NonReg / nonreg (push) Has been cancelled
auto-sync-0030
2026-04-22 00:30:04 +02:00

13 lines
666 B
PHP

<?php
header("Content-Type: text/plain");
$out = "";
$out .= "=== Installing youtube_transcript_api ===\n";
$out .= @shell_exec("pip install --break-system-packages youtube-transcript-api 2>&1 | tail -5");
$out .= "\n=== Installing rembg (CPU only) ===\n";
$out .= @shell_exec("pip install --break-system-packages 'rembg[cpu]' 2>&1 | tail -10");
$out .= "\n=== Verify ===\n";
$out .= "tesseract: " . trim(@shell_exec("which tesseract")) . "\n";
$out .= "rembg: " . trim(@shell_exec("which rembg")) . "\n";
$out .= "yt_api: " . trim(@shell_exec("python3 -c 'import youtube_transcript_api; print(\"OK\", youtube_transcript_api.__version__)' 2>&1")) . "\n";
echo $out;