#talking to whisper via JavaScript

4 messages · Page 1 of 1 (latest)

covert bone
#

i have whisper running as a flask app on port 5000 of my raw ip…
I am able to use curl request
curl -F file=yourfile.mp3 http:://rawip:5000

And get a response with transcription

i am. Trying to achieve this in JavaScript and I get failed to fetch attempting this function…

I have enabled CORS … or at least i think i do in my flask app using flask-cors

‘’’ const bamBoom = async () => {
response = await fetch("http://45.76.9.46:5000/whisper", {
mp3,
headers: {
"Content-Type": "multipart/form-data"
}
});
console.log(response);
};
bamBoom();’’’

covert bone
#
Referrer Policy: strict-origin-when-cross-origin
Provisional headers are shown
Learn more
Content-Type: multipart/form-data
Referer```
#

this is what i see for whisper/ in the network tab

covert bone
#

i have it working over https