Fehler beim Ausführen des Phyton-Skriptes behoben

This commit is contained in:
2024-11-19 12:41:48 +01:00
parent 2a31ef1c19
commit 91279fa711
3 changed files with 47 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
if (!empty($userMessage)) {
// Python-Skript aufrufen
$command = escapeshellcmd("python3 assistant.py " . escapeshellarg($userMessage));
$command = escapeshellcmd("python3 assistant_v1.py " . escapeshellarg($userMessage));
$response = shell_exec($command);
$assistantResponse = json_decode($response, true);
}