From 1b5c92a5f963a4d0654a3bb3154a47ae58964438 Mon Sep 17 00:00:00 2001 From: Alan He Date: Sat, 7 Dec 2024 22:48:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(Upload):=20=E4=BF=AE=E5=A4=8D=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E5=AD=97=E5=B9=95=E6=8C=89=E9=92=AE=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E5=92=8C=E7=A7=BB=E9=99=A4=E6=97=A0=E6=95=88?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复了下载字幕按钮文本显示错误,并移除了无效的注释代码。 --- src/components/Upload.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/Upload.js b/src/components/Upload.js index e9ed305..021b743 100644 --- a/src/components/Upload.js +++ b/src/components/Upload.js @@ -64,6 +64,7 @@ function Upload() { formData.append('file', file); formData.append('model', 'whisper-1'); formData.append('response_format', 'verbose_json'); + // formData.append('timestamp_granularities[]', 'word'); try { const response = await fetch('https://api.openai.com/v1/audio/transcriptions', { @@ -228,7 +229,7 @@ function Upload() { onClick={handleDownload} className="px-4 py-2 bg-green-500 text-white rounded-lg hover:bg-green-600 transition-colors" > - 下���字幕 + 下载字幕