Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2023-029
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-029
2023-029
Commits
5255e52b
Commit
5255e52b
authored
Aug 03, 2023
by
Paranagama R.P.S.D.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix : UI issues & flow issues
parent
73d8a7a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
12 deletions
+21
-12
Project/Frontend/Web_App/src/pages/translate-page.tsx
Project/Frontend/Web_App/src/pages/translate-page.tsx
+21
-12
No files found.
Project/Frontend/Web_App/src/pages/translate-page.tsx
View file @
5255e52b
...
@@ -107,18 +107,27 @@ export default function AboutPage() {
...
@@ -107,18 +107,27 @@ export default function AboutPage() {
// Video Upload
// Video Upload
const
translateSignLanguageToText
=
async
()
=>
{
const
translateSignLanguageToText
=
async
()
=>
{
setLoading
(
true
);
if
(
file
)
{
const
formData
=
new
FormData
();
setLoading
(
true
);
formData
.
append
(
'
video_request
'
,
file
,
'
test_video.mp4
'
);
const
formData
=
new
FormData
();
formData
.
append
(
'
video_request
'
,
file
,
'
test_video.mp4
'
);
try
{
try
{
const
response
=
await
SignLanguageToTextService
.
predictSignLanguageVideo
(
10
,
formData
);
const
response
=
await
SignLanguageToTextService
.
predictSignLanguageVideo
(
10
,
formData
);
console
.
log
(
response
.
data
);
if
(
response
.
status
==
200
)
{
setValue
(
response
.
data
.
predictions
);
console
.
log
(
response
.
data
);
setLoading
(
false
);
setValue
(
response
.
data
.
predictions
);
}
catch
(
error
)
{
}
else
{
console
.
log
(
error
);
enqueueSnackbar
(
'
Something went Wrong!
'
,
{
variant
:
'
error
'
});
setLoading
(
false
);
}
setLoading
(
false
);
}
catch
(
error
)
{
console
.
log
(
error
);
setLoading
(
false
);
enqueueSnackbar
(
'
Something went Wrong!
'
,
{
variant
:
'
error
'
});
}
}
else
{
enqueueSnackbar
(
'
Please select a file.
'
,
{
variant
:
'
warning
'
});
}
}
};
};
...
@@ -251,7 +260,7 @@ export default function AboutPage() {
...
@@ -251,7 +260,7 @@ export default function AboutPage() {
<
Box
sx=
{
{
flexGrow
:
1
}
}
>
<
Box
sx=
{
{
flexGrow
:
1
}
}
>
<
Card
>
<
Card
>
<
CardHeader
title=
"
Upload
a video containing Sign Language"
/>
<
CardHeader
title=
"
Capture
a video containing Sign Language"
/>
<
Grid
container
spacing=
{
2
}
>
<
Grid
container
spacing=
{
2
}
>
<
Grid
item
xs=
{
12
}
md=
{
6
}
>
<
Grid
item
xs=
{
12
}
md=
{
6
}
>
<
Card
>
<
Card
>
...
...
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