summaryrefslogtreecommitdiffstats
path: root/g4f/api/run.py
diff options
context:
space:
mode:
Diffstat (limited to 'g4f/api/run.py')
-rw-r--r--g4f/api/run.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/g4f/api/run.py b/g4f/api/run.py
index 6e9b63f3..d214aae7 100644
--- a/g4f/api/run.py
+++ b/g4f/api/run.py
@@ -1,4 +1,5 @@
-from g4f.api import run_api
+import g4f
+import g4f.api
if __name__ == "__main__":
- run_api()
+ g4f.api.Api(g4f).run('localhost:1337', 8) \ No newline at end of file