Commit 62e141f2 authored by Ridma Dilshan's avatar Ridma Dilshan

Fix the Emotion Detection Tabs and Pages

parent 699f7153
This diff is collapsed.
...@@ -18,7 +18,8 @@ class ImageRequest(BaseModel): ...@@ -18,7 +18,8 @@ class ImageRequest(BaseModel):
image: UploadFile image: UploadFile
# Load your Keras model # Load your Keras model
model = tf.keras.models.load_model('../ML_Models/sign_language_to_text/models/sign_language_model.h5') # model = tf.keras.models.load_model('../ML_Models/sign_language_to_text/models/sign_language_model.h5')
model= None
CLASSES = mappings.classes CLASSES = mappings.classes
NUM_CLASSES = len(mappings.classes) # number of classes NUM_CLASSES = len(mappings.classes) # number of classes
IMG_SIZE = 224 # image size IMG_SIZE = 224 # image size
......
...@@ -12,7 +12,10 @@ import { ...@@ -12,7 +12,10 @@ import {
ShoppingOutlined, ShoppingOutlined,
TeamOutlined, TeamOutlined,
TranslationOutlined, TranslationOutlined,
UserOutlined UserOutlined,
AudioOutlined,
VideoCameraOutlined,
RedditOutlined,
} from '@ant-design/icons'; } from '@ant-design/icons';
// type // type
...@@ -29,7 +32,10 @@ const icons = { ...@@ -29,7 +32,10 @@ const icons = {
LoginOutlined, LoginOutlined,
RocketOutlined, RocketOutlined,
BookOutlined, BookOutlined,
TranslationOutlined TranslationOutlined,
AudioOutlined,
VideoCameraOutlined,
RedditOutlined,
}; };
// ==============================|| MENU ITEMS - SUPPORT ||============================== // // ==============================|| MENU ITEMS - SUPPORT ||============================== //
...@@ -74,6 +80,32 @@ const application: NavItemType = { ...@@ -74,6 +80,32 @@ const application: NavItemType = {
icon: icons.TranslationOutlined, icon: icons.TranslationOutlined,
url: '/ssl-translate/process', url: '/ssl-translate/process',
}, },
{
id: 'emotion-detection',
title: <FormattedMessage id="emotion-detection" />,
type: 'collapse',
icon: icons.RedditOutlined,
children: [
{
id: 'audio-detection',
title: <FormattedMessage id="audio-detection" />,
type: 'item',
icon: icons.AudioOutlined,
url: '/emotion-detection/audio-detection',
},
{
id: 'video-detection',
title: <FormattedMessage id="video-detection" />,
type: 'item',
icon: icons.VideoCameraOutlined,
url: '/emotion-detection/video-detection',
},
]
},
{ {
id: 'learning-management', id: 'learning-management',
title: <FormattedMessage id="learning-management" />, title: <FormattedMessage id="learning-management" />,
......
// material-ui
// third-party
// project import
import MainCard from 'components/MainCard';
import ScrollX from 'components/ScrollX';
// assets
//types
// ==============================|| List ||============================== //
const List = () => {
return (
<MainCard content={false}>
<ScrollX>
{/* content here */}
<h1>Sample Page</h1>
</ScrollX>
</MainCard>
)
}
export default List;
// material-ui
// third-party
// project import
import MainCard from 'components/MainCard';
import ScrollX from 'components/ScrollX';
// assets
//types
// ==============================|| List ||============================== //
const List = () => {
return (
<MainCard content={false}>
<ScrollX>
{/* content here */}
<h1>Sample Page 2</h1>
</ScrollX>
</MainCard>
)
}
export default List;
...@@ -41,6 +41,12 @@ const TutorialManagementList = Loadable(lazy(() => import('pages/parameter/tutor ...@@ -41,6 +41,12 @@ const TutorialManagementList = Loadable(lazy(() => import('pages/parameter/tutor
// render - ssl translate process page // render - ssl translate process page
const SSLTranslateProcess = Loadable(lazy(() => import('pages/ssl-translate/process/process'))); const SSLTranslateProcess = Loadable(lazy(() => import('pages/ssl-translate/process/process')));
// render - audio-detection page
const AudioDetection = Loadable(lazy(() => import('pages/emotion-detection/emotion-audio-detection/list/list')));
// render - video-detection page
const VideoDetection = Loadable(lazy(() => import('pages/emotion-detection/emotion-video-detection/list/list')));
// render - learning-curriculums-subscribed page // render - learning-curriculums-subscribed page
const LearningCurriculumsSubscribed = Loadable(lazy(() => import('pages/learning-management/learning-curriculums-subscribed/list/list'))); const LearningCurriculumsSubscribed = Loadable(lazy(() => import('pages/learning-management/learning-curriculums-subscribed/list/list')));
...@@ -96,6 +102,21 @@ const MainRoutes = { ...@@ -96,6 +102,21 @@ const MainRoutes = {
} }
] ]
}, },
{
path: 'emotion-detection',
children: [
{
path: 'audio-detection',
element: <AudioDetection />
},
{
path: 'video-detection',
element: <VideoDetection />
}
]
},
{ {
path: 'learning-management', path: 'learning-management',
children: [ children: [
......
...@@ -161,5 +161,8 @@ ...@@ -161,5 +161,8 @@
"learning-curriculums-subscribed": "My Courses", "learning-curriculums-subscribed": "My Courses",
"learning-lead-board": "Lead Board", "learning-lead-board": "Lead Board",
"learning-feedback": "Feedback", "learning-feedback": "Feedback",
"ssl-translate": "SSL Translate" "ssl-translate": "SSL Translate",
"emotion-detection": "Emotion Detection",
"audio-detection": "Audio Detection",
"video-detection": "Video Detection"
} }
\ No newline at end of file
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