Skip to content

Commit

Permalink
fix: remove fallback value
Browse files Browse the repository at this point in the history
  • Loading branch information
ijemmao committed Nov 3, 2024
1 parent 8a7a621 commit e54df1c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/pages/APIs/PredictionAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,11 @@ export const postSpeechToTextEndpoint = async ({
}: {
base64: string,
}): Promise<SpeechToTextResponse> => {
// const { data } = await useCallable('demo', {
// type: DemoOption.SPEECH_TO_TEXT,
// data: { base64 },
// });
// return data || { transcription: '' };
return { transcription: 'testing' };
const { data } = await useCallable('demo', {
type: DemoOption.SPEECH_TO_TEXT,
data: { base64 },
});
return data || { transcription: '' };
};

/**
Expand Down

0 comments on commit e54df1c

Please sign in to comment.