Skip to content

Open browser window with localhost:[port]#4

Open
Catalyzzt wants to merge 1 commit intocrowsonkb:masterfrom
Catalyzzt:patch-1
Open

Open browser window with localhost:[port]#4
Catalyzzt wants to merge 1 commit intocrowsonkb:masterfrom
Catalyzzt:patch-1

Conversation

@Catalyzzt
Copy link
Copy Markdown

I noticed that the "--browser" flag does not function correctly and that, when the browser window is opened with the host IP, it returns an error. Changing the URL to localhost:[port] does the trick.

I noticed that the "--browser" flag does not function correctly and that, when the browser window is opened with the host IP, it returns an error. Changing the URL to localhost:[port] does the trick.
Comment thread style_transfer/cli.py
atexit.register(callback.close)

url = f'http://{args.host}:{args.port}/'
url = f'http://localhost:{args.port}/'
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another option would be to change the default --host to localhost as opposed to 0.0.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant