summaryrefslogtreecommitdiffstats
path: root/g4f
diff options
context:
space:
mode:
authorThatLukinhasGuy <139662282+thatlukinhasguy1@users.noreply.github.com>2023-11-04 22:23:29 +0100
committerGitHub <noreply@github.com>2023-11-04 22:23:29 +0100
commit1726bc723d0fd09e6d52567c1c7e27516b96f94f (patch)
treeb033e61621faaa259697f71590f02dd94449e150 /g4f
parentUpdate __init__.py (diff)
downloadgpt4free-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')
-rw-r--r--g4f/api/__init__.py2
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)