jamezmca / free-scribe

React web based transcription & translation app that uses web workers to run ML models in the browser
28 stars 14 forks source link

i am getting an error in file whisper.worker.js #1

Open Awezsk opened 3 months ago

Awezsk commented 3 months ago

Unexpected token '<', "<!doctype "... is not valid JSON

on whisper worker js line 33 ![Uploading Screenshot (58).png…]()

jamezmca commented 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?

jatiwalnikhil61 commented 3 months ago

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

jatiwalnikhil61 commented 3 months ago

I closed my system and restarted the server. It is working right now. Thank you. @Awezsk you should also try it once

Belsinghferrus commented 2 months ago

Screenshot 2024-07-20 104123

@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

KevinBermudezC commented 1 month ago

I have the same error :(

Belsinghferrus commented 1 month ago

I think cache is causing this issue... Try it in Firefox or incognito or other browser.. It worked for me..

KevinBermudezC commented 1 month ago

After I Commented here, it works lmao, I just got one thing, image Not sure why sometimes when i record my voice or upload a mp3 it says that

Madhesh21 commented 1 month ago

@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

rakshitgupta23 commented 1 week ago

I have tried everything but it's still not working Earlier i was getting these errors

Screenshot 2024-09-06 195046 But after incorporating @Madhesh21 suggestion import {pipeline, env} from '@xenova/transformers`; import { MessageTypes } from './presets' env.allowLocalModels = false; I am getting this error Screenshot 2024-09-06 195258

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)

Belsinghferrus commented 1 week ago

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.

rakshitgupta23 commented 1 week ago

Now getting issue with translation part. The loading just goes on endlessly. @jamezmca