mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 02:30:41 -08:00
~ | 0.1.7.0
This commit is contained in:
parent
603b5b85a4
commit
d01c2afe47
4 changed files with 6 additions and 5 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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue