json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

#2
by FTTF - opened

Hi,

Is the error below related to the encoding of my audio file? Or is it a mistake on my end (likely)?

I am running the model through the Inference API.

Best


Traceback (most recent call last):
File "/Users/opt/anaconda3/lib/python3.9/site-packages/requests/models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
File "/Users/opt/anaconda3/lib/python3.9/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/Users/opt/anaconda3/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Users/opt/anaconda3/lib/python3.9/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/Desktop/hviske.py", line 12, in
output = query("xxx.flac")
File "/Users/Desktop/hviske.py", line 10, in query
return response.json()
File "/Users/opt/anaconda3/lib/python3.9/site-packages/requests/models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Hey FTTF.

The mistake is not on your end. It seems like some of the files were empty when I uploaded them, which causes your error. I'm retraining the model now, which should fix your problem.

Should be done in 40-ish hours.

Thank you so much, Mads

@FTTF the model is done. I've reuploaded it and tested locally.

mhenrichsen changed discussion status to closed

Thank you very much. I'll give it a try right away.

Sign up or log in to comment