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

Not at all working #32

Open
Saharsh1223 opened this issue Apr 18, 2022 · 0 comments
Open

Not at all working #32

Saharsh1223 opened this issue Apr 18, 2022 · 0 comments

Comments

@Saharsh1223
Copy link

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

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