Almaatla commited on
Commit
64e11cc
·
verified ·
1 Parent(s): 7b81fdf

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +5 -2
index.html CHANGED
@@ -55,6 +55,9 @@
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
 
@@ -69,8 +72,8 @@
69
  document.apiKey = null;
70
  document.apiBaseUrl = null;
71
  async function transcribeAudio() {
72
- const apiKey = document.apiKey;
73
- const apiBaseUrl = document.apiBaseUrl;
74
  const audioFile = document.getElementById('audioFile').files[0];
75
  const transcriptionDiv = document.getElementById('transcription');
76
 
 
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">
63
 
 
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