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
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