Skip to content

Commit

Permalink
remove un-necessary log and improve format description
Browse files Browse the repository at this point in the history
  • Loading branch information
marjisound committed Apr 2, 2024
1 parent 2d08baf commit f0af6d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ const getApp = async () => {

const transcriptS3Key =
parsedItem.data.transcriptKeys[exportRequest.data.transcriptFormat];
console.log(`transcriptS3Key: ${transcriptS3Key}`);
const transcriptText = await getObjectText(
s3Client,
config.app.transcriptionOutputBucket,
Expand Down
7 changes: 3 additions & 4 deletions packages/client/src/components/ExportButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ const ExportButton = () => {
}

const transcriptFormatDescription: Record<TranscriptFormat, string> = {
srt: 'SRT format (Time Coded)',
text: 'TEXT format',
json: 'JSON format',
srt: 'Srt (with time code)',
text: 'Text',
json: 'Json',
};

const transcriptId = searchParams.get('transcriptId');
Expand Down Expand Up @@ -86,7 +86,6 @@ const ExportButton = () => {

const exportHandler = async () => {
if (!transcriptFormat) {
console.log(`transcript format value is ${transcriptFormat}`);
setTranscriptFormatValid(false);
return;
}
Expand Down

0 comments on commit f0af6d5

Please sign in to comment.