summaryrefslogtreecommitdiffstats
path: root/g4f/api
diff options
context:
space:
mode:
authorThatLukinhasGuy <139662282+thatlukinhasguy1@users.noreply.github.com>2023-11-04 22:19:30 +0100
committerGitHub <noreply@github.com>2023-11-04 22:19:30 +0100
commit81bd9bab33378652c073a2e340b7dbc759aadee7 (patch)
treecb5751c41297bc1c87e13f9a0fd133f364bb41c4 /g4f/api
parentUpdate __init__.py (diff)
downloadgpt4free-81bd9bab33378652c073a2e340b7dbc759aadee7.tar
gpt4free-81bd9bab33378652c073a2e340b7dbc759aadee7.tar.gz
gpt4free-81bd9bab33378652c073a2e340b7dbc759aadee7.tar.bz2
gpt4free-81bd9bab33378652c073a2e340b7dbc759aadee7.tar.lz
gpt4free-81bd9bab33378652c073a2e340b7dbc759aadee7.tar.xz
gpt4free-81bd9bab33378652c073a2e340b7dbc759aadee7.tar.zst
gpt4free-81bd9bab33378652c073a2e340b7dbc759aadee7.zip
Diffstat (limited to 'g4f/api')
-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 17951339..a1ab66de 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(self.app, host=split_ip[0], port=int(split_ip[1]), use_colors=False, workers=thread_quantity)
+ uvicorn.run("__init__:app", host=split_ip[0], port=int(split_ip[1]), use_colors=False, workers=thread_quantity)