Spaces:
Sleeping
Sleeping
Commit ·
649bebb
1
Parent(s): f43a724
feat: implement API service layer for backend communication and authentication
Browse files176 unmodified lines177178179180181182183176 unmodified linesconst formData = new FormData();// Name the file 'recording.webm' so backend knows how to save itformData.append('file', audioBlob, 'recording.webm');const response = await fetch(`${BASE_URL}/voice/transcribe`, {method: 'POST',headers: {176 unmodified lines177178179180181182183176 unmodified linesconst formData = new FormData();// Name the file 'recording.webm' so backend knows how to save itformData.append('file', audioBlob, 'recording.webm');const response = await fetch(`${BASE_URL}/voice/transcribe`, {method: 'POST',headers: {
frontend-react/src/api.js+1-1