-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tortoise model and voice selection improvements (#73)
* fix voices height * improve env generator * add voices-tortoise * add voices-tortoise to voice dropdown * add tortoise models path * improved open_folder * add open buttons for folders * tortoise add model dropdown * add video
- Loading branch information
Showing
11 changed files
with
163 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ favorites/ | |
voices/ | ||
collections/ | ||
outputs-rvc/ | ||
voices-tortoise/ | ||
|
||
# Ignore model checkpoints | ||
data/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,24 @@ | ||
import os | ||
import subprocess | ||
import sys | ||
|
||
if sys.platform == "darwin": | ||
|
||
def open_folder(folder_path: str): | ||
os.startfile(folder_path) | ||
def open_folder(folder_path: str): | ||
subprocess.check_call(["open", "--", folder_path]) | ||
|
||
elif sys.platform == "linux2": | ||
|
||
def open_folder(folder_path: str): | ||
subprocess.check_call(["xdg-open", "--", folder_path]) | ||
|
||
elif sys.platform == "win32": | ||
|
||
def open_folder(folder_path: str): | ||
subprocess.Popen(["explorer", folder_path]) | ||
|
||
|
||
if __name__ == "__main__": | ||
# open_folder("./data/models/") | ||
import os | ||
|
||
open_folder(os.path.join(os.path.dirname(__file__), "..", "data", "models")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,25 @@ | ||
import gradio as gr | ||
from src.history_tab.open_folder import open_folder | ||
|
||
|
||
def gr_reload_button(**kwargs): | ||
def gr_icon_button(value="refresh", **kwargs): | ||
return gr.Button( | ||
"refresh", | ||
value=value, | ||
elem_classes="btn-sm material-symbols-outlined", | ||
size="sm", | ||
**kwargs, | ||
) | ||
|
||
|
||
def gr_reload_button(**kwargs): | ||
return gr_icon_button(value="refresh", **kwargs) | ||
|
||
|
||
def gr_open_button(**kwargs): | ||
return gr_icon_button(value="folder_open", **kwargs) | ||
|
||
|
||
def gr_open_button_simple(dirname="", **kwargs): | ||
return gr_open_button(**kwargs).click( | ||
fn=lambda: open_folder(dirname), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.