Spaces:
Running
Running
Update index.html
Browse files- index.html +0 -12
index.html
CHANGED
|
@@ -27,19 +27,7 @@ Current URL
|
|
| 27 |
|
| 28 |
<button onclick="getParameters()"> Get URL parameters </button>
|
| 29 |
|
| 30 |
-
<input type="text" id="input">
|
| 31 |
-
<button onclick="sendData()">Send Data</button>
|
| 32 |
<div id="output"></div>
|
| 33 |
-
<script>
|
| 34 |
-
function sendData() {
|
| 35 |
-
import { client } from "@gradio/client";
|
| 36 |
-
const response = await fetch( "https://github.com/audio-samples/audio-samples.github.io/raw/master/samples/wav/ted_speakers/SalmanKhan/sample-1.wav" );
|
| 37 |
-
const audio_file = await response.blob();
|
| 38 |
-
const app = await client("abidlabs/whisper");
|
| 39 |
-
const transcription = await app.predict("/predict", [audio_file]);
|
| 40 |
-
console.log(transcription.data);
|
| 41 |
-
}
|
| 42 |
-
</script>
|
| 43 |
|
| 44 |
|
| 45 |
|
|
|
|
| 27 |
|
| 28 |
<button onclick="getParameters()"> Get URL parameters </button>
|
| 29 |
|
|
|
|
|
|
|
| 30 |
<div id="output"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
|
| 33 |
|