Skip to content

Commit

Permalink
Add diarizationRequested to transcribe-url call
Browse files Browse the repository at this point in the history
  • Loading branch information
philmcmahon committed Jan 27, 2025
1 parent 2a6443a commit 29e3ae0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/client/src/components/UploadForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const submitMediaUrl = async (
token: string,
languageCode: LanguageCode,
translationRequested: boolean,
diarizationRequested: boolean,
) => {
const response = await authFetch('/api/transcribe-url', token, {
method: 'POST',
Expand All @@ -51,6 +52,7 @@ const submitMediaUrl = async (
url,
languageCode,
translationRequested,
diarizationRequested,
}),
});
const success = response.status === 200;
Expand Down Expand Up @@ -232,6 +234,7 @@ export const UploadForm = () => {
token,
mediaFileLanguageCode,
translationRequested,
diarizationRequested,
);
if (success) {
setMediaUrls((prev) => ({
Expand Down

0 comments on commit 29e3ae0

Please sign in to comment.