summaryrefslogtreecommitdiffstats
path: root/g4f/api/run.py
diff options
context:
space:
mode:
authorabc <98614666+xtekky@users.noreply.github.com>2023-10-20 20:04:13 +0200
committerabc <98614666+xtekky@users.noreply.github.com>2023-10-20 20:04:13 +0200
commit8e7e694d81e674db63049145a35972df8ad2e3fa (patch)
treed6000ee808385a20f85e03e3173e3aa16a605757 /g4f/api/run.py
parent~ (diff)
downloadgpt4free-8e7e694d81e674db63049145a35972df8ad2e3fa.tar
gpt4free-8e7e694d81e674db63049145a35972df8ad2e3fa.tar.gz
gpt4free-8e7e694d81e674db63049145a35972df8ad2e3fa.tar.bz2
gpt4free-8e7e694d81e674db63049145a35972df8ad2e3fa.tar.lz
gpt4free-8e7e694d81e674db63049145a35972df8ad2e3fa.tar.xz
gpt4free-8e7e694d81e674db63049145a35972df8ad2e3fa.tar.zst
gpt4free-8e7e694d81e674db63049145a35972df8ad2e3fa.zip
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