diff options
author | abc <98614666+xtekky@users.noreply.github.com> | 2023-10-20 20:36:34 +0200 |
---|---|---|
committer | abc <98614666+xtekky@users.noreply.github.com> | 2023-10-20 20:36:34 +0200 |
commit | d01c2afe47a379183d41691d617613deac66c646 (patch) | |
tree | dcc79222ac3492951566b4add8cde6457e1bffd9 /g4f/cli.py | |
parent | ~ | g4f v-0.1.6.9 (diff) | |
download | gpt4free-d01c2afe47a379183d41691d617613deac66c646.tar gpt4free-d01c2afe47a379183d41691d617613deac66c646.tar.gz gpt4free-d01c2afe47a379183d41691d617613deac66c646.tar.bz2 gpt4free-d01c2afe47a379183d41691d617613deac66c646.tar.lz gpt4free-d01c2afe47a379183d41691d617613deac66c646.tar.xz gpt4free-d01c2afe47a379183d41691d617613deac66c646.tar.zst gpt4free-d01c2afe47a379183d41691d617613deac66c646.zip |
Diffstat (limited to '')
-rw-r--r-- | g4f/cli.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,6 +1,7 @@ import argparse +import g4f -from g4f.api import run_api +from g4f.api import Api from g4f.gui.run import gui_parser, run_gui_args @@ -16,7 +17,7 @@ def main(): args = parser.parse_args() if args.mode == "api": - run_api() + Api(g4f).run('localhost:1337', 8) elif args.mode == "gui": run_gui_args(args) else: |