JarodMica / ai-voice-cloning

GNU General Public License v3.0
656 stars 144 forks source link

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

Closed PeterTucker closed 6 months ago

PeterTucker commented 6 months 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 6 months 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 6 months ago

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