fix bug - Cannot assign requested address

This commit is contained in:
late 2023-10-21 12:10:03 +08:00
parent 2ac711ed89
commit 0e93d841ba
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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: