Spaces:
Running
Running
Update index.html
Browse files- index.html +4 -4
index.html
CHANGED
|
@@ -55,8 +55,8 @@
|
|
| 55 |
<div id="container">
|
| 56 |
<h1>Whisper WAV Transcription</h1>
|
| 57 |
|
| 58 |
-
<
|
| 59 |
-
<
|
| 60 |
|
| 61 |
<label for="audioFile">Select WAV File:</label>
|
| 62 |
<input type="file" id="audioFile" accept=".wav">
|
|
@@ -70,8 +70,8 @@
|
|
| 70 |
|
| 71 |
<script>
|
| 72 |
async function transcribeAudio() {
|
| 73 |
-
const apiKey = document.getElementById('apiKey').
|
| 74 |
-
const apiBaseUrl = document.getElementById('apiBaseUrl').
|
| 75 |
|
| 76 |
const audioFile = document.getElementById('audioFile').files[0];
|
| 77 |
const transcriptionDiv = document.getElementById('transcription');
|
|
|
|
| 55 |
<div id="container">
|
| 56 |
<h1>Whisper WAV Transcription</h1>
|
| 57 |
|
| 58 |
+
<div id="apiKey" style="display:none"></div>
|
| 59 |
+
<div id="apiBaseUrl"><div>
|
| 60 |
|
| 61 |
<label for="audioFile">Select WAV File:</label>
|
| 62 |
<input type="file" id="audioFile" accept=".wav">
|
|
|
|
| 70 |
|
| 71 |
<script>
|
| 72 |
async function transcribeAudio() {
|
| 73 |
+
const apiKey = document.getElementById('apiKey').textContent;
|
| 74 |
+
const apiBaseUrl = document.getElementById('apiBaseUrl').textContent;
|
| 75 |
|
| 76 |
const audioFile = document.getElementById('audioFile').files[0];
|
| 77 |
const transcriptionDiv = document.getElementById('transcription');
|