Commit 7af15089 authored by Dakshina Weerasiri 's avatar Dakshina Weerasiri

Facial expressions

parent c88ebc61
......@@ -24,3 +24,33 @@ const FIREBASE_CONFIG = {
const app = initializeApp(FIREBASE_CONFIG);
export const fileStorage = getStorage(app);
export const emotionsData = [
{
angry: 0.01,
disgust: 0.0,
fear: 0.2,
happy: 0.18,
sad: 0.02,
surprise: 0.4,
neutral: 0.19,
},
{
angry: 0.02,
disgust: 0.1,
fear: 0.3,
happy: 0.28,
sad: 0.03,
surprise: 1.4,
neutral: 0.29,
},
{
angry: 1.02,
disgust: 0.2,
fear: 1.3,
happy: 2.28,
sad: 0.3,
surprise: 2.4,
neutral: 0.5,
},
];
......@@ -43,7 +43,7 @@ export const request = (
data,
params,
headers,
timeout: 30000,
timeout: 90000,
})
.then(async (response: AxiosResponse) => {
logger("RESPONSE: ", response);
......
......@@ -66,6 +66,7 @@ export const getStatusColor = (status?: ApplicationType["status"]) => {
};
export const getAddress = (address: AddressType) => {
if (!address) return "";
return `${address.addressLine}, ${address.city}, ${address.country}`;
};
......
......@@ -57,6 +57,12 @@ function* applyForJob({
candidate: profile._id,
job: payload,
status: "Pending",
interview: {
date: "",
time: "",
link: "",
voiceVerification: "Pending",
},
},
resumeUrl: profile.resume,
}
......
......@@ -147,9 +147,30 @@ export type ApplicationType = {
time: string;
link: string;
videoRef?: string;
voiceVerification?: string;
};
};
export type EmotionsPayloadType = {
angry: number;
disgust: number;
fear: number;
happy: number;
sad: number;
surprise: number;
neutral: number;
};
export type EmotionsType = {
data: [
{
box: number[];
emotions: EmotionsPayloadType;
}
];
end: boolean;
};
//PAYLOADS
export type SignUpPayload = {
passwords: string[];
......@@ -201,7 +222,7 @@ export type ApplicationPayloadType = {
time: string;
link: string;
videoRef?: string;
voiceVerification?: number;
voiceVerification?: string;
};
score: {
primary: number;
......
This diff is collapsed.
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