Almaatla commited on
Commit
88d689b
·
verified ·
1 Parent(s): 64e11cc

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +3 -4
index.html CHANGED
@@ -55,8 +55,8 @@
55
  <div id="container">
56
  <h1>Whisper WAV Transcription</h1>
57
 
58
- <input type="hidden" id="apiKey">
59
- <input type="hidden" id="apiBaseUrl">
60
 
61
  <label for="audioFile">Select WAV File:</label>
62
  <input type="file" id="audioFile" accept=".wav">
@@ -69,11 +69,10 @@
69
  </div>
70
 
71
  <script>
72
- document.apiKey = null;
73
- document.apiBaseUrl = null;
74
  async function transcribeAudio() {
75
  const apiKey = document.getElementById('apiKey').value;
76
  const apiBaseUrl = document.getElementById('apiBaseUrl').value;
 
77
  const audioFile = document.getElementById('audioFile').files[0];
78
  const transcriptionDiv = document.getElementById('transcription');
79
 
 
55
  <div id="container">
56
  <h1>Whisper WAV Transcription</h1>
57
 
58
+ <input type="hidden" id="apiKey" value="">
59
+ <input type="hidden" id="apiBaseUrl" value="">
60
 
61
  <label for="audioFile">Select WAV File:</label>
62
  <input type="file" id="audioFile" accept=".wav">
 
69
  </div>
70
 
71
  <script>
 
 
72
  async function transcribeAudio() {
73
  const apiKey = document.getElementById('apiKey').value;
74
  const apiBaseUrl = document.getElementById('apiBaseUrl').value;
75
+
76
  const audioFile = document.getElementById('audioFile').files[0];
77
  const transcriptionDiv = document.getElementById('transcription');
78