Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dead "NEW React UI" link #290

Closed
darkvertex opened this issue Mar 17, 2024 · 6 comments
Closed

Dead "NEW React UI" link #290

darkvertex opened this issue Mar 17, 2024 · 6 comments

Comments

@darkvertex
Copy link

The line:

"# TTS Generation WebUI (Bark, MusicGen + AudioGen, Tortoise, RVC) [NEW React UI](http://localhost:3000)"

...adds a "NEW React UI" markdown link in the header that goes to localhost:3000 but there seems to be nothing set up to actually run anything on this port.

Is the docker-compose.yml missing something?

@rsxdalv
Copy link
Owner

rsxdalv commented Mar 17, 2024 via email

@darkvertex
Copy link
Author

Hmm, when launching the Docker image (ghcr.io/rsxdalv/tts-generation-webui:main) at the time of writing, I see:
/bin/sh: 1: npm: not found

I guess that's it; npm is missing.

Also missing is a line to expose port 3000 in the docker-compose.yml:

@rsxdalv
Copy link
Owner

rsxdalv commented Mar 21, 2024

Thanks, I will fix it.

rsxdalv added a commit that referenced this issue Mar 22, 2024
rsxdalv added a commit that referenced this issue Mar 22, 2024
* add install disclaimer

* upgrade vocos to 0.1.0

* readme

* add vall-e

* add turkish model to bark voice clone

* add React UI to Dockerfiles #290

* fix

* readme
@rsxdalv
Copy link
Owner

rsxdalv commented Mar 22, 2024

I pushed the update. Please test the new image and let me know how it goes. https://github.com/rsxdalv/tts-generation-webui/actions/runs/8393137834/job/22987441352

@darkvertex
Copy link
Author

Seems to work now as far as serving a UI on port 3000 is concerned, but FYI the link assumes it is running as localhost, which may not always be so.

In my case I run this container on a beefy remote machine and so clicking the "NEW React UI" takes me to... nothing... but swapping the port number does work.

Linking to a different port number relatively is not allowed in HTML, but with a bit of JS you can take your link:

<a href="http://localhost:3000" target="_blank" rel="noopener noreferrer">NEW React UI</a>

and use JS to swap the port number on hover:

<a href="/" target="_blank" rel="noopener noreferrer" onmouseover="javascript:event.target.port=3000">NEW React UI</a>

Works like a charm and displays the actual real link on hover, like a natural link.

@rsxdalv
Copy link
Owner

rsxdalv commented Mar 25, 2024

That's amazing, thank you, I have included it in the latest commit. Thankfully gradio's markdown accepts HTML.

@rsxdalv rsxdalv closed this as completed Mar 26, 2024
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

No branches or pull requests

2 participants