jQuery(document).ready(function($) { $('#form').on('submit', function(event) { event.preventDefault(); var input = $('#input').val(); $.ajax({ url: 'http://127.0.0.1:5000/process_data', // Die URL deiner Python-API type: 'POST', data: JSON.stringify({input: input}), contentType: 'application/json', success: function(response) { console.log('AJAX-Anfrage erfolgreich gesendet.'); var result = response.result; console.log('Erhaltene Daten:', response); console.log('Verarbeitetes Ergebnis:', result); $('#result').text(result); }, error: function(xhr, status, error) { console.log('Fehler bei der AJAX-Anfrage:', error); } }); }); });

ich

ich bin 12 jahre alt. ich heiße zu mindest hir Ben aber in wirklichkeit anders. ich möchte auch viel kontent auch biten und spanende videos bringen. ich bedanke mich für jedes abo und like auf meinem kannal wen ihr wisen wollt wie mein kannal heist checkt _My kannal_ aus da vindet ihr die infos.