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();’’’