Commit ef5367f1 authored by Udara Rangika Herath's avatar Udara Rangika Herath

Merge branch 'it20617400/proficiency_level_detection' into 'master'

front page created

See merge request 2023-24-027/implementation-of-an-intelligent-virtual-tutor-to-enhance-english-vocabulary-skills-of-grade-6-students!6
parents 8bfaa91c f6ef6c08
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Proficiency Level Identification</title>
</head>
<body>
<h1>Proficiency Level Identification</h1>
<textarea id="inputData" placeholder="Enter JSON data here" rows="15" cols="40"></textarea>
<div>
<button onclick="makeRequest()">Send Request</button>
</div>
<h2>Response:</h2>
<pre id="response"></pre>
<script>
function makeRequest() {
var inputData = document.getElementById("inputData").value;
// Replace this URL with your Flask API endpoint
var apiUrl = "http://127.0.0.1:5000/predict_proficiency";
fetch(apiUrl, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: inputData
})
.then(response => response.json())
.then(data => {
document.getElementById("response").innerText = JSON.stringify(data, null, 2);
})
.catch(error => {
document.getElementById("response").innerText = "Error: " + error.message;
});
}
</script>
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment