mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-10-11 03:00:23 +08:00
fix bug - Cannot assign requested address
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user