summaryrefslogtreecommitdiffstats
path: root/g4f/api
diff options
context:
space:
mode:
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 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)