falsche Python-Datei referenziert
This commit is contained in:
@@ -7,7 +7,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||||||
|
|
||||||
if (!empty($userMessage)) {
|
if (!empty($userMessage)) {
|
||||||
// Python-Skript aufrufen
|
// Python-Skript aufrufen
|
||||||
$command = escapeshellcmd("python3 assistant_api.py " . escapeshellarg($userMessage));
|
$command = escapeshellcmd("python3 assistant.py " . escapeshellarg($userMessage));
|
||||||
$response = shell_exec($command);
|
$response = shell_exec($command);
|
||||||
$assistantResponse = json_decode($response, true);
|
$assistantResponse = json_decode($response, true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user