From 64ab4770dd84088d5465edd3a37b69529fa8d372 Mon Sep 17 00:00:00 2001 From: Hamza Date: Thu, 4 May 2023 16:30:34 +0100 Subject: Fixed imports --- gpt4free/forefront/__init__.py | 1 + gpt4free/test.py | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 gpt4free/test.py diff --git a/gpt4free/forefront/__init__.py b/gpt4free/forefront/__init__.py index a3912fb4..dbf1730b 100644 --- a/gpt4free/forefront/__init__.py +++ b/gpt4free/forefront/__init__.py @@ -1,6 +1,7 @@ from json import loads from xtempmail import Email from re import findall +from typing import Optional, Generator from faker import Faker from time import time, sleep from uuid import uuid4 diff --git a/gpt4free/test.py b/gpt4free/test.py new file mode 100644 index 00000000..b2516748 --- /dev/null +++ b/gpt4free/test.py @@ -0,0 +1,4 @@ +import forefront +token = forefront.Account.create() +response = forefront.Completion.create(token=token, prompt='Hello!') +print(response) \ No newline at end of file -- cgit v1.2.3