From 81bd9bab33378652c073a2e340b7dbc759aadee7 Mon Sep 17 00:00:00 2001 From: ThatLukinhasGuy <139662282+thatlukinhasguy1@users.noreply.github.com> Date: Sat, 4 Nov 2023 18:19:30 -0300 Subject: Update __init__.py --- g4f/api/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g4f/api') 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) -- cgit v1.2.3