Ruu3f / freeGPT

freeGPT provides free access to text and image generation models.
GNU General Public License v3.0
445 stars 54 forks source link

name 'Session' is not defined #4

Closed feusagittaire closed 1 year ago

feusagittaire commented 1 year ago

Hi! I'm facing an error when trying to use gpt3

from freeGPT import gpt3

try:

Remove the 'proxy' variable and the 'proxies' parameter if you don't want to use a proxy.

resp = gpt3.Completion.create(prompt=prompt) print(f"🤖 > {str(resp['text'])}") except Exception as e: print(f"🤖 > {str(e)}")

Output: 🤖 > name 'Session' is not defined

Ruu3f commented 1 year ago

Simply, pip install --upgrade freeGPT

feusagittaire commented 1 year ago

My bad, I forgot to reinitialize the environment! But still, it gives me this error🤖 > Unable to fetch the response.

Edit: the alpaca is working!

Ruu3f commented 1 year ago

Yeah, sometimes it isn't able to fetch data from the website so simply this error comes.