Fehler beim Ausführen des Phyton-Skriptes behoben
This commit is contained in:
2
api.php
2
api.php
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user