prsaw icon indicating copy to clipboard operation
prsaw copied to clipboard

Not at all working

Open Saharsh1223 opened this issue 3 years ago • 0 comments

Code:

from prsaw import RandomStuffV2

rs = RandomStuffV2() 

response = rs.get_ai_response("How are you?")
print(response)

rs.close()

Error:

Traceback (most recent call last):
  File "main.py", line 8, in <module>
    response = rs.get_ai_response("How are you?")
  File "/home/runner/ChatBot/venv/lib/python3.8/site-packages/apiclient/core.py", line 95, in __call__
    return self.sync_call(httpx_request)
  File "/home/runner/ChatBot/venv/lib/python3.8/site-packages/apiclient/core.py", line 100, in sync_call
    response = post_processor(response)
  File "/home/runner/ChatBot/venv/lib/python3.8/site-packages/prsaw/PRSAW.py", line 115, in _post_get_image
    return res[0]
KeyError: 0

And yes i am using replit.com

Saharsh1223 avatar Apr 18 '22 05:04 Saharsh1223