summaryrefslogtreecommitdiffstats
path: root/g4f/api
diff options
context:
space:
mode:
authorThatLukinhasGuy <139662282+thatlukinhasguy1@users.noreply.github.com>2023-11-04 22:27:25 +0100
committerGitHub <noreply@github.com>2023-11-04 22:27:25 +0100
commit90678515a67c00e503ab183c93c65698e7942934 (patch)
tree86aa11e433365fa3f6adbb947ae24ffee28b5013 /g4f/api
parentUpdate __init__.py (diff)
downloadgpt4free-90678515a67c00e503ab183c93c65698e7942934.tar
gpt4free-90678515a67c00e503ab183c93c65698e7942934.tar.gz
gpt4free-90678515a67c00e503ab183c93c65698e7942934.tar.bz2
gpt4free-90678515a67c00e503ab183c93c65698e7942934.tar.lz
gpt4free-90678515a67c00e503ab183c93c65698e7942934.tar.xz
gpt4free-90678515a67c00e503ab183c93c65698e7942934.tar.zst
gpt4free-90678515a67c00e503ab183c93c65698e7942934.zip
Diffstat (limited to '')
-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 bbb0d1d5..43bca2a5 100644
--- a/g4f/api/__init__.py
+++ b/g4f/api/__init__.py
@@ -159,4 +159,4 @@ class Api:
def run(self, ip):
split_ip = ip.split(":")
- uvicorn.run(host=split_ip[0], port=int(split_ip[1]), use_colors=False)
+ uvicorn.run(app=self.app, host=split_ip[0], port=int(split_ip[1]), use_colors=False)