Almaatla commited on
Commit
bf36f4c
·
verified ·
1 Parent(s): 0b9bb92

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +2 -5
index.html CHANGED
@@ -55,9 +55,6 @@
55
  <div id="container">
56
  <h1>Whisper WAV Transcription</h1>
57
 
58
- <label for="apiKey">API Key:</label>
59
- <input type="text" id="apiKey" placeholder="Enter your API key">
60
-
61
  <label for="audioFile">Select WAV File:</label>
62
  <input type="file" id="audioFile" accept=".wav">
63
 
@@ -69,9 +66,9 @@
69
  </div>
70
 
71
  <script>
 
 
72
  async function transcribeAudio() {
73
- const x_apiKey = document.getElementById('apiKey').value;
74
- const [apiKey,apiBaseUrl] = x_apiKey.split('&');
75
  const audioFile = document.getElementById('audioFile').files[0];
76
  const transcriptionDiv = document.getElementById('transcription');
77
 
 
55
  <div id="container">
56
  <h1>Whisper WAV Transcription</h1>
57
 
 
 
 
58
  <label for="audioFile">Select WAV File:</label>
59
  <input type="file" id="audioFile" accept=".wav">
60
 
 
66
  </div>
67
 
68
  <script>
69
+ let apiKey = null;
70
+ let apiBaseUrl = null;
71
  async function transcribeAudio() {
 
 
72
  const audioFile = document.getElementById('audioFile').files[0];
73
  const transcriptionDiv = document.getElementById('transcription');
74