Traceback (most recent call last):
File "d:\Working on\ml\research\test.py", line 956, in
for a in Perplexity().generate_answer(prompt):
^^^^^^^^^^^^
File "d:\Working on\ml\research\research\Lib\site-packages\perplexityai__init.py", line 22, in init
self.sid = loads(
^^^^^^
File "C:\Users\alok.r\AppData\Local\Programs\Python\Python311\Lib\json\init__.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\alok.r\AppData\Local\Programs\Python\Python311\Lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\alok.r\AppData\Local\Programs\Python\Python311\Lib\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)
Traceback (most recent call last): File "d:\Working on\ml\research\test.py", line 956, in
for a in Perplexity().generate_answer(prompt):
^^^^^^^^^^^^
File "d:\Working on\ml\research\research\Lib\site-packages\perplexityai__init.py", line 22, in init
self.sid = loads(
^^^^^^
File "C:\Users\alok.r\AppData\Local\Programs\Python\Python311\Lib\json\init__.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\alok.r\AppData\Local\Programs\Python\Python311\Lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\alok.r\AppData\Local\Programs\Python\Python311\Lib\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)