Skip to content

JSONDecodeError #8

Open
Open
@James0128

Description

After I run the "streamlit run NLPfily.py" and get the webpage, there is a jsondecodeerror raised when I choose the service.
I don't know how to solve it, the error is below:
could you please help me ?
File "/home/test/ENTER/lib/python3.8/site-packages/streamlit/script_runner.py", line 332, in _run_script
exec(code, module.dict)
File "/home/test/insight-master/src_streamlit/NLPfiy.py", line 130, in
main()
File "/home/test/insight-master/src_streamlit/NLPfiy.py", line 116, in main
model_details = apicall.model_list(service=service)
File "/home/test/insight-master/src_streamlit/NLPfiy.py", line 24, in model_list
return json.loads(models.text)
File "/home/test/ENTER/lib/python3.8/json/init.py", line 357, in loads
return _default_decoder.decode(s)
File "/home/test/ENTER/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/home/test/ENTER/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions