Open Awezsk opened 3 months ago
Can you please try replacing all the code in your current whisper.worker with the version in the GitHub and let me know if it works?
Hello. I am also getting the same error even after replacing the whisper.worker code with the github version. If you could please address it, it would be a big help
I closed my system and restarted the server. It is working right now. Thank you. @Awezsk you should also try it once
@jamezmca I have tried replacing my code with GitHub code..
Unexpected token '<', "<!doctype "... is not valid JSON
Still the error is not resolved..
And also I have another error in place
whisper.worker.js:83 Uncaught (in promise)
TypeError: Cannot read properties of undefined (reading 'model')
at new GenerationTracker (whisper.worker.js:83:100)
at transcribe (whisper.worker.js:40:31)
at async whisper.worker.js:21:9
GenerationTracker @ whisper.worker.js:83
transcribe @ whisper.worker.js:40
NOTE: Getting this error even in incognito
I have the same error :(
I think cache is causing this issue... Try it in Firefox or incognito or other browser.. It worked for me..
After I Commented here, it works lmao, I just got one thing, Not sure why sometimes when i record my voice or upload a mp3 it says that
@Belsinghferrus add this code on top
import {pipeline, env} from '@xenova/transformers`; import { MessageTypes } from './presets' env.allowLocalModels = false;
after this , shutdown your localhost and clear browser cache and then restart your browser and your localhost.
I hope this solves your problem
I have tried everything but it's still not working Earlier i was getting these errors
But after incorporating @Madhesh21 suggestion import {pipeline, env} from '@xenova/transformers`; import { MessageTypes } from './presets' env.allowLocalModels = false; I am getting this error
After adding one more line:- env.useBrowserCache = false; on @ynamite 's suggestion now it is working on Microsoft Edge, but still not working on Google Chrome(Incognito or Normal window)
I would say if it's already working on Edge..you might as well continue finishing it in edge..
I faced the same issue with chrome, Thanks to Edge.
Now getting issue with translation part. The loading just goes on endlessly. @jamezmca
Unexpected token '<', "<!doctype "... is not valid JSON
on whisper worker js line 33 ![Uploading Screenshot (58).png…]()