From 382cd1fa57cdbc9ab5312c3420ce68db1d736212 Mon Sep 17 00:00:00 2001 From: Chan Date: Wed, 8 Jan 2025 17:55:58 +0900 Subject: [PATCH] =?UTF-8?q?=EC=97=85=EB=A1=9C=EB=93=9C=20=EA=B8=B0?= =?UTF-8?q?=EB=8A=A5=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 52 ++++++++++++------------ demo/index.html | 74 ++++++++++++++++++++++++++++++---- docs/whisper-transcript.min.js | 2 +- src/WhisperSegment.js | 2 +- 4 files changed, 95 insertions(+), 35 deletions(-) diff --git a/.gitignore b/.gitignore index 62ba3c1..b681127 100644 --- a/.gitignore +++ b/.gitignore @@ -1,26 +1,26 @@ -## editors -/.idea -/.vscode - -## system files -.DS_Store - -## npm -/node_modules/ -/npm-debug.log - -## testing -/coverage/ - -## temp folders -/.tmp/ - -# build -/_site/ -/dist/ -/out-tsc/ - -storybook-static -custom-elements.json - -yarn.lock +## editors +/.idea +/.vscode + +## system files +.DS_Store + +## npm +/node_modules/ +/npm-debug.log + +## testing +/coverage/ + +## temp folders +/.tmp/ + +# build +/_site/ +/dist/ +/out-tsc/ + +storybook-static +custom-elements.json + +yarn.lock diff --git a/demo/index.html b/demo/index.html index 1b01673..20b06fe 100644 --- a/demo/index.html +++ b/demo/index.html @@ -10,24 +10,84 @@ font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Inter,Helvetica,Arial,sans-serif; margin: 5% 10% 5% 10%; background-color: black; + color: white; + } + input[type="file"] { + margin: 1em 0; } +
+

Dynamic Whisper Transcript

+ +
+ +
+ +
+ +
+
+
diff --git a/docs/whisper-transcript.min.js b/docs/whisper-transcript.min.js index a161920..9a5b43c 100644 --- a/docs/whisper-transcript.min.js +++ b/docs/whisper-transcript.min.js @@ -153,7 +153,7 @@ class WhisperSegment extends r {
${hms(this.start)} - ${hms(this.end)}
${this.words.map(w => - x`` + x`` )}
diff --git a/src/WhisperSegment.js b/src/WhisperSegment.js index 96d1e25..1b06fe0 100644 --- a/src/WhisperSegment.js +++ b/src/WhisperSegment.js @@ -60,7 +60,7 @@ export class WhisperSegment extends LitElement {
${hms(this.start)} - ${hms(this.end)}
${this.words.map(w => - html`` + html`` )}