Spaces:
Running
Running
Update index.html
Browse files- index.html +3 -3
index.html
CHANGED
|
@@ -66,12 +66,12 @@
|
|
| 66 |
</div>
|
| 67 |
|
| 68 |
<script>
|
| 69 |
-
var apiKey = null;
|
| 70 |
-
var apiBaseUrl = null;
|
| 71 |
async function transcribeAudio() {
|
|
|
|
|
|
|
| 72 |
const audioFile = document.getElementById('audioFile').files[0];
|
| 73 |
const transcriptionDiv = document.getElementById('transcription');
|
| 74 |
-
|
| 75 |
if (!apiKey || !audioFile) {
|
| 76 |
console.log(apiKey);
|
| 77 |
alert('Please provide both API key and a WAV file.');
|
|
|
|
| 66 |
</div>
|
| 67 |
|
| 68 |
<script>
|
|
|
|
|
|
|
| 69 |
async function transcribeAudio() {
|
| 70 |
+
const apiKey = document.apiKey;
|
| 71 |
+
const apiBaseUrl = document.apiBaseUrl;
|
| 72 |
const audioFile = document.getElementById('audioFile').files[0];
|
| 73 |
const transcriptionDiv = document.getElementById('transcription');
|
| 74 |
+
|
| 75 |
if (!apiKey || !audioFile) {
|
| 76 |
console.log(apiKey);
|
| 77 |
alert('Please provide both API key and a WAV file.');
|