Commit 5b73813b authored by janithgamage1.ed's avatar janithgamage1.ed

fix: update

parent 654456a2
...@@ -13,7 +13,7 @@ import construction from 'assets/images/maintenance/under-construction.svg'; ...@@ -13,7 +13,7 @@ import construction from 'assets/images/maintenance/under-construction.svg';
import {CardContent,IconButton,InputAdornment,Paper,TextField,Typography} from '@mui/material'; import {CardContent,IconButton,InputAdornment,Paper,TextField,Typography} from '@mui/material';
import CopyOutlined from '@ant-design/icons/lib/icons/CopyOutlined'; import CopyOutlined from '@ant-design/icons/lib/icons/CopyOutlined';
import AudioEmotionDetectService from '../../../services/AudioEmotionDetection.js'; import AudioEmotionDetectService from '../../../../services/AudioEmotionDetection.js';
import { MuiFileInput } from 'mui-file-input'; import { MuiFileInput } from 'mui-file-input';
import { useSnackbar } from 'notistack'; import { useSnackbar } from 'notistack';
......
...@@ -13,7 +13,7 @@ import construction from 'assets/images/maintenance/under-construction.svg'; ...@@ -13,7 +13,7 @@ import construction from 'assets/images/maintenance/under-construction.svg';
import {CardContent,IconButton,InputAdornment,Paper,TextField,Typography} from '@mui/material'; import {CardContent,IconButton,InputAdornment,Paper,TextField,Typography} from '@mui/material';
import CopyOutlined from '@ant-design/icons/lib/icons/CopyOutlined'; import CopyOutlined from '@ant-design/icons/lib/icons/CopyOutlined';
import VideoEmotionDetectService from '../../../services/VideoEmotionDetection.js'; import VideoEmotionDetectService from '../../../../services/VideoEmotionDetection.js';
import { MuiFileInput } from 'mui-file-input'; import { MuiFileInput } from 'mui-file-input';
import { useSnackbar } from 'notistack'; import { useSnackbar } from 'notistack';
......
import axios from 'axios';
class AudioEmotionDetectService {
predictEmotionAudio(data) {
return axios.post(
// @ts-ignore
`http://127.0.0.1:8000/predict_emotion/audio/`,
data
);
}
}
export default new AudioEmotionDetectService();
\ No newline at end of file
import axios from 'axios';
class SignLanguageToTextService {
predictSignLanguageVideo(speed, data) {
return axios.post(
`http://127.0.0.1:8000/predict-sign-language/video/speed_levels?speed=${speed}`,
data
);
}
}
export default new SignLanguageToTextService();
import axios from 'axios';
class VideoEmotionDetectService {
predictEmotionVideo(data) {
return axios.post(
// @ts-ignore
`http://127.0.0.1:8000/predict_emotion/video/`,
data
);
}
}
export default new VideoEmotionDetectService();
\ No newline at end of file
...@@ -3,7 +3,6 @@ import axios from 'axios'; ...@@ -3,7 +3,6 @@ import axios from 'axios';
class AudioEmotionDetectService { class AudioEmotionDetectService {
predictEmotionAudio(data) { predictEmotionAudio(data) {
return axios.post( return axios.post(
// @ts-ignore
`http://127.0.0.1:8000/predict_emotion/audio/`, `http://127.0.0.1:8000/predict_emotion/audio/`,
data data
); );
......
...@@ -3,7 +3,6 @@ import axios from 'axios'; ...@@ -3,7 +3,6 @@ import axios from 'axios';
class VideoEmotionDetectService { class VideoEmotionDetectService {
predictEmotionVideo(data) { predictEmotionVideo(data) {
return axios.post( return axios.post(
// @ts-ignore
`http://127.0.0.1:8000/predict_emotion/video/`, `http://127.0.0.1:8000/predict_emotion/video/`,
data data
); );
......
...@@ -3,9 +3,7 @@ import axios from 'axios'; ...@@ -3,9 +3,7 @@ import axios from 'axios';
class VideoToSignLanguage { class VideoToSignLanguage {
videoTranslation(data) { videoTranslation(data) {
return axios.post( return axios.post(
// @ts-ignore `http://127.0.0.1:8000/translated_items/`, data
`http://127.0.0.1:8000/translated_items/`,
data
); );
} }
} }
......
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