Skip to content

Commit 430b570

Browse files
authored
make React UI link relative to host (rsxdalv#294)
* add augmentignore * make the React UI link relative
1 parent af94b04 commit 430b570

File tree

4 files changed

+75
-5
lines changed

4 files changed

+75
-5
lines changed

.augmentignore

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Ignore Python bytecode
2+
__pycache__
3+
4+
# Ignore settings
5+
config.json
6+
.env
7+
8+
# Ignore generated files
9+
/outputs/
10+
/favorites/
11+
/voices/
12+
/collections/
13+
/outputs-rvc/
14+
/voices-tortoise/
15+
16+
# Ignore model checkpoints
17+
/data/models
18+
19+
# Ignore temporary files
20+
temp/
21+
22+
# Ignore node modules
23+
node_modules/
24+
25+
# Editors
26+
.vscode/
27+
.idea/
28+
.sourcery.yaml
29+
30+
# Ignore temporary Jupiter notebooks
31+
*.temp.ipynb

react-ui/.augmentignore

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# next.js
12+
/.next/
13+
/out/
14+
15+
# production
16+
/build
17+
18+
# misc
19+
.DS_Store
20+
*.pem
21+
22+
# debug
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
27+
# local env files
28+
.env*.local
29+
30+
# vercel
31+
.vercel
32+
33+
# typescript
34+
*.tsbuildinfo
35+
next-env.d.ts
36+
37+
# vscode
38+
.vscode
39+
40+
# upload cache
41+
/public/file-input-cache/
42+

server.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def reload_config_and_restart_ui():
5959
analytics_enabled=False, # it broke too many times
6060
) as demo:
6161
gr.Markdown(
62-
"# TTS Generation WebUI (Bark, MusicGen + AudioGen, Tortoise, RVC) [NEW React UI](http://localhost:3000)"
62+
"""# TTS Generation WebUI (Bark, MusicGen + AudioGen, Tortoise, RVC) <a href="/" target="_blank" rel="noopener noreferrer" onmouseover="javascript:event.target.port=3000">NEW React UI</a>"""
6363
)
6464
with Joutai.singleton.tabs:
6565
from src.tortoise.generation_tab_tortoise import generation_tab_tortoise

src/bark/clone/tab_voice_clone.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,7 @@ def get_encodec_prompts(path_to_wav: str, use_gpu=True):
114114
coarse_prompt = fine_prompt[:2, :]
115115
return fine_prompt, coarse_prompt
116116

117-
118-
def save_cloned_voice(
119-
full_generation: FullGeneration,
120-
):
117+
def save_cloned_voice(full_generation: FullGeneration):
121118
voice_name = f"voice_from_audio_{history_to_hash(full_generation)}"
122119
filename = f"voices/{voice_name}.npz"
123120
date = get_date_string()

0 commit comments

Comments
 (0)