Skip to content

Commit

Permalink
fix(Upload): 修复下载字幕按钮文本错误和移除无效注释
Browse files Browse the repository at this point in the history
修复了下载字幕按钮文本显示错误,并移除了无效的注释代码。
  • Loading branch information
alanhe421 committed Dec 7, 2024
1 parent 5523fa4 commit 1b5c92a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down Expand Up @@ -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"
>
下���字幕
下载字幕
</button>
<button
onClick={generateSummary}
Expand All @@ -252,4 +253,4 @@ function Upload() {
);
}

export default Upload;
export default Upload;

0 comments on commit 1b5c92a

Please sign in to comment.