Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
Intelligent English Tutor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2023-24-027
Intelligent English Tutor
Commits
f6ef6c08
Commit
f6ef6c08
authored
Feb 07, 2024
by
Udara Rangika
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
front page created
parent
c3c6dffe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
ProficiencyLevelDetection/index.html
ProficiencyLevelDetection/index.html
+43
-0
No files found.
ProficiencyLevelDetection/index.html
0 → 100644
View file @
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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment