pruth23's picture
Duplicate from pruth23/freegpt4
2f013d1
raw
history blame contribute delete
425 Bytes
# Fix by @enganese
# Import Account class from __init__.py file
from gpt4free import usesless
# Create Account and enable logging to see all the log messages (it's very interesting, try it!)
# New account credentials will be automatically saved in account.json file in such template: {"email": "[email protected]", "token": "token here"}
token = usesless.Account.create(logging=True)
# Print the new token
print(token)