feat: replace Whisper with Deepgram ASR + speaker diarization
This commit is contained in:
10
frontend/app.js
Normal file
10
frontend/app.js
Normal file
@@ -0,0 +1,10 @@
|
||||
const API_BASE = '/api/v1';
|
||||
async function upload(file) {
|
||||
const formData = new FormData();
|
||||
formData.append('file', file);
|
||||
const res = await fetch(API_BASE + '/upload', {
|
||||
method: 'POST',
|
||||
body: formData
|
||||
});
|
||||
return await res.json();
|
||||
}
|
||||
Reference in New Issue
Block a user