Kalpak
Kalpak
Explore posts from servers
HHono
Created by Kalpak on 4/9/2025 in #help
zValidator c.req.valid("form") type error
Got it, appreaciate all the detailed responses and help. Thanks!
33 replies
HHono
Created by Kalpak on 4/9/2025 in #help
zValidator c.req.valid("form") type error
I see, would you refactor any of the logic into different files or would everything (validation, data access, view) for auth live in AuthController.ts?
33 replies
HHono
Created by Kalpak on 4/9/2025 in #help
zValidator c.req.valid("form") type error
hmm, I see. It felt a lot cleaner to do it in the RoR style. Beside complex typing are there performance complications ?
33 replies
HHono
Created by Kalpak on 4/9/2025 in #help
zValidator c.req.valid("form") type error
Do you have a recommendation on best practices?
33 replies
HHono
Created by Kalpak on 4/9/2025 in #help
zValidator c.req.valid("form") type error
I used createHandlers:
import { createFactory } from "hono/factory";
import authValidator from "@/routes/auth/validators/auth.validators";
import authService, { UserMetadata } from "@/routes/auth/services/auth.service";
import EmailVerificationCTA from "@/routes/auth/views/EmailVerificationCTA";

const signUpFactory = createFactory();

const signUpWithEmailHandlers = signUpFactory.createHandlers(
authValidator.signUpValidator,
async (c) => {
const { email, password, firstName, lastName, dob, gender } =
c.req.valid("form");

const userMetadata = {
first_name: firstName,
last_name: lastName,
dob,
gender,
};

const { error } = await authService.signUpWithEmail(
c,
email as string,
password as string,
userMetadata as UserMetadata
);

if (error == null) {
return c.render(<EmailVerificationCTA email={email as string} />);
}

c.status(400);
return c.redirect("/auth/error");
}
);

export default { signUpWithEmailHandlers };
import { createFactory } from "hono/factory";
import authValidator from "@/routes/auth/validators/auth.validators";
import authService, { UserMetadata } from "@/routes/auth/services/auth.service";
import EmailVerificationCTA from "@/routes/auth/views/EmailVerificationCTA";

const signUpFactory = createFactory();

const signUpWithEmailHandlers = signUpFactory.createHandlers(
authValidator.signUpValidator,
async (c) => {
const { email, password, firstName, lastName, dob, gender } =
c.req.valid("form");

const userMetadata = {
first_name: firstName,
last_name: lastName,
dob,
gender,
};

const { error } = await authService.signUpWithEmail(
c,
email as string,
password as string,
userMetadata as UserMetadata
);

if (error == null) {
return c.render(<EmailVerificationCTA email={email as string} />);
}

c.status(400);
return c.redirect("/auth/error");
}
);

export default { signUpWithEmailHandlers };
33 replies
HHono
Created by Kalpak on 4/9/2025 in #help
zValidator c.req.valid("form") type error
Figured it out by using a factory
33 replies
RRunPod
Created by Kalpak on 2/22/2025 in #⚡|serverless
Help with deploying WhisperX ($35 bounty)
10 replies
RRunPod
Created by Kalpak on 2/22/2025 in #⚡|serverless
Help with deploying WhisperX ($35 bounty)
@nerdylive would I pass the hf token in as a env variable? The image doesnt link the source code so im unsure how it accepts it
10 replies
RRunPod
Created by Kalpak on 2/22/2025 in #⚡|serverless
Help with deploying WhisperX ($35 bounty)
I tried using this docker image (https://hub.docker.com/layers/madiator2011/whisperx-worker/test4) but diarization doesn't seem to work:
{
"delayTime": 704,
"error": "An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache. Please check your connection and try again or make sure your Internet connection is on.",
"executionTime": 7228,
"id": "7623d46e-ae16-4394-9aa0-e11d0bd32a63-u1",
"status": "FAILED",
"workerId": "9wk6lupo31k4ob"
}
{
"delayTime": 704,
"error": "An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache. Please check your connection and try again or make sure your Internet connection is on.",
"executionTime": 7228,
"id": "7623d46e-ae16-4394-9aa0-e11d0bd32a63-u1",
"status": "FAILED",
"workerId": "9wk6lupo31k4ob"
}
10 replies
RRunPod
Created by Kalpak on 2/22/2025 in #⚡|serverless
Help with deploying WhisperX ($35 bounty)
==========
== CUDA ==
==========
CUDA Version 11.6.2
Container image Copyright (c) 2016-2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
This container image and its contents are governed by the NVIDIA Deep Learning Container License.
By pulling and using the container, you accept the terms and conditions of this license:
https://developer.nvidia.com/ngc/nvidia-deep-learning-container-license
A copy of this license is made available in this container at /NGC-DL-CONTAINER-LICENSE for your convenience.
quirks.py :115 2025-02-22 22:55:07,714 Applied quirks (see `speechbrain.utils.quirks`): [disable_jit_profiling, allow_tf32]
quirks.py :120 2025-02-22 22:55:07,714 Excluded quirks specified by the `SB_DISABLE_QUIRKS` environment (comma-separated list): []
/usr/local/lib/python3.10/dist-packages/pyannote/audio/pipelines/speaker_verification.py:45: UserWarning: Module 'speechbrain.pretrained' was deprecated, redirecting to 'speechbrain.inference'. Please update your script. This is a change from SpeechBrain 1.0. See: https://github.com/speechbrain/speechbrain/releases/tag/v1.0.0
from speechbrain.pretrained import (
--- Starting Serverless Worker | Version 1.7.7 ---
{"requestId": null, "message": "Jobs in queue: 1", "level": "INFO"}
{"requestId": null, "message": "Jobs in progress: 1", "level": "INFO"}
{"requestId": "7e0e8478-41d1-47b4-8f7b-98098cd53cbf-u1", "message": "Started.", "level": "INFO"}
{"requestId": "7e0e8478-41d1-47b4-8f7b-98098cd53cbf-u1", "message": "Failed to return job results. | 400, message='Bad Request', url='https://api.runpod.ai/v2/h03p8vmv03m3u7/job-done/gdowmh2i4enic6/7e0e8478-41d1-47b4-8f7b-98098cd53cbf-u1?gpu=NVIDIA+RTX+A5000&isStream=false'", "level": "ERROR"}
{"requestId": "7e0e8478-41d1-47b4-8f7b-98098cd53cbf-u1", "message": "Finished.", "level": "INFO"}
==========
== CUDA ==
==========
CUDA Version 11.6.2
Container image Copyright (c) 2016-2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
This container image and its contents are governed by the NVIDIA Deep Learning Container License.
By pulling and using the container, you accept the terms and conditions of this license:
https://developer.nvidia.com/ngc/nvidia-deep-learning-container-license
A copy of this license is made available in this container at /NGC-DL-CONTAINER-LICENSE for your convenience.
quirks.py :115 2025-02-22 22:55:07,714 Applied quirks (see `speechbrain.utils.quirks`): [disable_jit_profiling, allow_tf32]
quirks.py :120 2025-02-22 22:55:07,714 Excluded quirks specified by the `SB_DISABLE_QUIRKS` environment (comma-separated list): []
/usr/local/lib/python3.10/dist-packages/pyannote/audio/pipelines/speaker_verification.py:45: UserWarning: Module 'speechbrain.pretrained' was deprecated, redirecting to 'speechbrain.inference'. Please update your script. This is a change from SpeechBrain 1.0. See: https://github.com/speechbrain/speechbrain/releases/tag/v1.0.0
from speechbrain.pretrained import (
--- Starting Serverless Worker | Version 1.7.7 ---
{"requestId": null, "message": "Jobs in queue: 1", "level": "INFO"}
{"requestId": null, "message": "Jobs in progress: 1", "level": "INFO"}
{"requestId": "7e0e8478-41d1-47b4-8f7b-98098cd53cbf-u1", "message": "Started.", "level": "INFO"}
{"requestId": "7e0e8478-41d1-47b4-8f7b-98098cd53cbf-u1", "message": "Failed to return job results. | 400, message='Bad Request', url='https://api.runpod.ai/v2/h03p8vmv03m3u7/job-done/gdowmh2i4enic6/7e0e8478-41d1-47b4-8f7b-98098cd53cbf-u1?gpu=NVIDIA+RTX+A5000&isStream=false'", "level": "ERROR"}
{"requestId": "7e0e8478-41d1-47b4-8f7b-98098cd53cbf-u1", "message": "Finished.", "level": "INFO"}
these are the worker logs
10 replies