insight icon indicating copy to clipboard operation
insight copied to clipboard

JSONDecodeError

Open James0128 opened this issue 5 years ago • 0 comments

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

James0128 avatar Nov 12 '20 09:11 James0128