Skip to content
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

JSONDecodeError: Expecting value: line 1 column 1 (char 0) #19

Open
jameswan opened this issue Aug 7, 2021 · 0 comments
Open

JSONDecodeError: Expecting value: line 1 column 1 (char 0) #19

jameswan opened this issue Aug 7, 2021 · 0 comments

Comments

@jameswan
Copy link

jameswan commented Aug 7, 2021

JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Traceback:
File "c:\users[user]\appdata\local\programs\python\python39\lib\site-packages\streamlit\script_runner.py", line 350, in run_script
exec(code, module.dict)
File "C:\Users[user]\Paraphrase-Generator\Streamlit\paraphrase.py", line 148, in
main()
File "C:\Users[user]\Paraphrase-Generator\Streamlit\paraphrase.py", line 60, in main
output = forward(user_input, decoding_params)
File "C:\Users[user]\Paraphrase-Generator\Streamlit\paraphrase.py", line 132, in forward
data = r.json()
File "c:\users[user]\appdata\local\programs\python\python39\lib\site-packages\requests\models.py", line 900, in json
return complexjson.loads(self.text, **kwargs)
File "c:\users[user]\appdata\local\programs\python\python39\lib\json_init
.py", line 346, in loads
return _default_decoder.decode(s)
File "c:\users[user]\appdata\local\programs\python\python39\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "c:\users[user]\appdata\local\programs\python\python39\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant