JarodMica / ai-voice-cloning

GNU General Public License v3.0
430 stars 87 forks source link

WSL/Linux Fix for those who can't connect to http://localhost:7860 #106

Closed PeterTucker closed 1 month ago

PeterTucker commented 1 month ago

A few others have found this solution, but I thought I'd clearly post a fix:

  1. change this line (34, I believe) in src/main.py:

    webui.launch(share=args.share, prevent_thread_lock=True, show_error=True, server_name=listen_host, server_port=args.li>

    to...

    webui.launch(share=args.share, prevent_thread_lock=True, show_error=True, server_name="0.0.0.0", server_port=args.li>
  2. Remove the ai-voice-cloning image if you already built it: docker image rm ai-voice-cloning

  3. Build the image again: ./setup-docker.sh

  4. Start the container again: ./start-docker.sh

  5. In your browser: http://localhost:7860

kimabjorkede commented 1 month ago

I had to change it to:

webui.launch(share=args.share, prevent_thread_lock=True, show_error=True, server_name="0.0.0.0", server_port=args.listen_port)
PeterTucker commented 1 month ago

@kimabjorkede Not sure why markdown cut off my answer, but yeah that's correct.