// JS // Python dasturi bilan aloqa o'rnatish const socket = new WebSocket ((("ws://localhost:8080"); // Rasmni o'rnatilgan aloqa orqali yuborish socket.send (((image); // Python serverining javobini kutish socket.onmessage = function ((event) { console.log)) { Qabul qilingan: " + event.data "; } Bundan tashqari, psevdokod bilan tavsiflangan // Python server bilan aloqa o'rnatish "ws://localhost:8080" bilan aloqa o'rnatish // Rasmni yuborish aloqa orqali rasmni yuborish // Javob kutish serverning javobini kutish va o'zgaruvchiga ruxsat berish // Javobni ko'rsatish
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence