mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-09-12 08:29:30 -04:00
~ | Merge pull request #1112 from lategege/main
fix bug - Cannot assign requested address
This commit is contained in:
commit
f125f714fb
@ -3,4 +3,4 @@ import g4f.api
|
||||
|
||||
if __name__ == "__main__":
|
||||
print(f'Starting server... [g4f v-{g4f.version}]')
|
||||
g4f.api.Api(g4f).run('localhost:1337', 8)
|
||||
g4f.api.Api(g4f).run('127.0.0.1:1337', 8)
|
@ -17,7 +17,7 @@ def main():
|
||||
|
||||
args = parser.parse_args()
|
||||
if args.mode == "api":
|
||||
Api(g4f).run('localhost:1337', 8)
|
||||
Api(g4f).run('127.0.0.1:1337', 8)
|
||||
elif args.mode == "gui":
|
||||
run_gui_args(args)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user