Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2021-156
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
Alahendra A.M.A.T.N.
2021-156
Commits
412624df
Commit
412624df
authored
Nov 21, 2021
by
Ranathunge R. A. D. O
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added index.html
parent
ef3b1de0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
stress-detection/index.html
stress-detection/index.html
+43
-0
No files found.
stress-detection/index.html
0 → 100644
View file @
412624df
<center>
<br>
<h4>
Select an Audio File
</h4>
<form
id=
"audio"
method=
"POST"
enctype=
"multipart/form-data"
>
<input
type=
"file"
accept=
"audio/*"
name=
"file"
/>
<br><br><br>
<input
type=
"submit"
value=
"Analyze"
/>
</form>
<br><br><br>
<img
id=
"img"
src=
"https://www.aucshow.net/assets/frontend/global/img/Processing.gif"
style=
"display: none;"
/>
<h2
id=
"response"
style=
"display: none;"
></h2>
</center>
<script
src=
"https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"
></script>
<script>
$
(
"
form#audio
"
).
submit
(
function
(
e
)
{
e
.
preventDefault
();
var
formData
=
new
FormData
(
this
);
$
(
"
#img
"
).
css
(
"
display
"
,
"
block
"
);
$
.
ajax
({
url
:
"
http://localhost:5000
"
,
type
:
'
POST
'
,
data
:
formData
,
success
:
function
(
response
){
console
.
log
(
"
Resss:
"
+
response
);
$
(
"
#img
"
).
css
(
"
display
"
,
"
none
"
);
$
(
"
#response
"
).
html
(
response
.
toString
());
$
(
"
#response
"
).
css
(
"
display
"
,
"
block
"
);
},
error
:
function
(
jqXHR
,
exception
)
{
alert
(
"
Error
"
);
$
(
"
#img
"
).
css
(
"
display
"
,
"
none
"
);
$
(
"
#response
"
).
html
(
exception
);
$
(
"
#response
"
).
css
(
"
display
"
,
"
block
"
);
},
cache
:
false
,
contentType
:
false
,
processData
:
false
});
});
</script>
\ No newline at end of file
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