File size: 381 Bytes
c36a615
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
async function reformuler() {
    const texte = document.getElementById("input").value;

    const response = await fetch("/reformuler", {
        method: "POST",
        headers: { "Content-Type": "application/json" },
        body: JSON.stringify({ texte })
    });

    const data = await response.json();
    document.getElementById("output").innerText = data.reformulation;
}