diff options
author | ThatLukinhasGuy <139662282+thatlukinhasguy1@users.noreply.github.com> | 2023-11-04 22:23:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-04 22:23:29 +0100 |
commit | 1726bc723d0fd09e6d52567c1c7e27516b96f94f (patch) | |
tree | b033e61621faaa259697f71590f02dd94449e150 /g4f/api/__init__.py | |
parent | Update __init__.py (diff) | |
download | gpt4free-1726bc723d0fd09e6d52567c1c7e27516b96f94f.tar gpt4free-1726bc723d0fd09e6d52567c1c7e27516b96f94f.tar.gz gpt4free-1726bc723d0fd09e6d52567c1c7e27516b96f94f.tar.bz2 gpt4free-1726bc723d0fd09e6d52567c1c7e27516b96f94f.tar.lz gpt4free-1726bc723d0fd09e6d52567c1c7e27516b96f94f.tar.xz gpt4free-1726bc723d0fd09e6d52567c1c7e27516b96f94f.tar.zst gpt4free-1726bc723d0fd09e6d52567c1c7e27516b96f94f.zip |
Diffstat (limited to 'g4f/api/__init__.py')
-rw-r--r-- | g4f/api/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/api/__init__.py b/g4f/api/__init__.py index a1ab66de..541be47d 100644 --- a/g4f/api/__init__.py +++ b/g4f/api/__init__.py @@ -159,4 +159,4 @@ class Api: def run(self, ip, thread_quantity): split_ip = ip.split(":") - uvicorn.run("__init__:app", host=split_ip[0], port=int(split_ip[1]), use_colors=False, workers=thread_quantity) + uvicorn.run(app=self.app, host=split_ip[0], port=int(split_ip[1]), use_colors=False, workers=thread_quantity) |