-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
whisper: CrisperWhisper results in grpc: error while marshaling: string field contains invalid UTF-8 #5038
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
Comments
Using CPU-based local-ai results in the same error
|
Hi - can you please share logs with also, can you try to set a model name without the "."? I don't think it's a problem per-se, but the UTF-8 error is unexpected. Can you also share how are you calling the API? |
hmm I don't understand this.
That's also just the name in the filesystem
import requests
import json
baseurl = "http://127.0.0.1:8080"
transcription = '/v1/audio/transcriptions'
testfile = 'test.mp3'
# transcription with whisper
############################
with open(testfile, "rb") as audio_file:
files = {"file": ("test.mp3", audio_file)}
data = {"model": "CrisperWhisper.bin"}
response = requests.post(baseurl + transcription, files=files, data=data)
print(response)
if response.status_code == 200:
raw = response.json().get('text')
else:
print(f"Whisper-Error: {response.status_code} - {response.text}")
print(raw) |
I'm experiencing the very same issue. Happens only for CrisperWhisper model, all other Whisper models I tried so far just work fine. Any further details I can provide to debug this? I'd love to get CrisperWhisper running... local-ai Version: v2.28.0 For reproducing the issue faster (w/o model conversion): ggml model here: https://huggingface.co/nyrahealth/CrisperWhisper/commit/0c039779bd37fc1fdd2bbaccaa02dbda7aac37d5#d2h-238772 |
LocalAI version:
localai/localai:v2.26.0-aio-gpu-nvidia-cuda-12
Environment, CPU architecture, OS, and Version:
Describe the bug
Using https://huggingface.co/nyrahealth/CrisperWhisper with local-ai resullts in
To Reproduce
move CrisperWhisper-out/ ggm file to your local-ai model path.
Expected behavior
Transcribe succeeded without any errors.
Logs
Additional context
The text was updated successfully, but these errors were encountered: