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

@@ -8,7 +8,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$conversation = $input['conversation'];
// Prepare the command to execute the Python script
$command = escapeshellcmd("python3 assistant.py '" . json_encode($conversation) . "'");
$command = escapeshellcmd("python3 assistant_v1.py '" . json_encode($conversation) . "'");
$output = shell_exec($command);
// Decode the response from Python script