Skip to content

Whisper web demo not working on IOS #1298

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 of 5 tasks
xuwenguang opened this issue Apr 27, 2025 · 2 comments
Open
1 of 5 tasks

Whisper web demo not working on IOS #1298

xuwenguang opened this issue Apr 27, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@xuwenguang
Copy link

System Info

IOS safari

Transformer.js 2.7

Environment/Platform

  • Website/web-app
  • Browser extension
  • Server-side (e.g., Node.js, Deno, Bun)
  • Desktop app (e.g., Electron)
  • Other (e.g., VSCode extension)

Description

Whisper web demo here is not working for ios safari.
https://huggingface.co/spaces/Xenova/whisper-web

It stucked after loading the model.
Here is the console log captured from iphone:


[Error] Error while parsing the 'sandbox' attribute: 'allow-downloads' is an invalid sandbox flag. (whisper-web, line 225)
[Info] Successfully preconnected to https://fonts.gstatic.com/
[Error] Failed to load resource: the server responded with a status of 406 () (sse, line 0)
[Error] Failed to fetch Space status via SSE: – "Failed to initialize stream (code 406)"
	onStateChange (SpaceHeader-BJTNEU2I.js:51:6726)
	onerror (index.js:9:2862)
	(anonymous function) (index.js:9:1545)
[Error] SSE Stream ended with error: – Error: Failed to initialize stream (code 406)
Error: Failed to initialize stream (code 406)
	error
[Error] Unhandled Promise Rejection: Error: Unsupported model type: whisper
	(anonymous function) (worker-8c8208dc.js:1790:179608)
[Error] Cache API operation failed: Quota exceeded
[Warning] Unable to add response to browser cache: QuotaExceededError: Quota exceeded. (worker-8c8208dc.js, line 1790)

Reproduction

open the demo site: https://huggingface.co/spaces/Xenova/whisper-web
choose whisper-base.en model
choose audio from the default url, click on transcribe button

@xuwenguang xuwenguang added the bug Something isn't working label Apr 27, 2025
@xuwenguang
Copy link
Author

it fails when trying to load model from pipeline.

@xuwenguang
Copy link
Author

@xenova please help to investigate.
Is this related with the JS engine in IOS causing the automatic pipeline and models having different behavior than chrome running in v8?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant