From 8e7e694d81e674db63049145a35972df8ad2e3fa Mon Sep 17 00:00:00 2001 From: abc <98614666+xtekky@users.noreply.github.com> Date: Fri, 20 Oct 2023 19:04:13 +0100 Subject: =?UTF-8?q?~=20|=C2=A0updated=20g4f.api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit new api and requirements --- g4f/api/run.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'g4f/api/run.py') diff --git a/g4f/api/run.py b/g4f/api/run.py index 6e9b63f3..d214aae7 100644 --- a/g4f/api/run.py +++ b/g4f/api/run.py @@ -1,4 +1,5 @@ -from g4f.api import run_api +import g4f +import g4f.api if __name__ == "__main__": - run_api() + g4f.api.Api(g4f).run('localhost:1337', 8) \ No newline at end of file -- cgit v1.2.3