barreloflube
commited on
Commit
β’
5c8602a
1
Parent(s):
0a55ba7
Add submodule EzAudio for sound module
Browse files- .gitmodules +3 -0
- app.py +6 -3
- config.py +3 -1
- requirements.txt +10 -0
- tabs/sound/EzAudio +1 -0
- tabs/sound/ui.py +8 -0
.gitmodules
CHANGED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
[submodule "tabs/sound/modules"]
|
2 |
+
path = tabs/sound/modules/EzAudio
|
3 |
+
url = https://huggingface.co/spaces/OpenSound/EzAudio
|
app.py
CHANGED
@@ -1,8 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
from config import css
|
4 |
-
from tabs.tts.ui import audio_tab
|
5 |
# from tabs.images.ui import image_tab
|
|
|
|
|
6 |
|
7 |
|
8 |
with gr.Blocks(theme=gr.themes.Soft(), css=css) as demo:
|
@@ -16,10 +17,12 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css) as demo:
|
|
16 |
|
17 |
# Tabs
|
18 |
with gr.Tabs():
|
|
|
|
|
19 |
# with gr.Tab(label="πΌοΈ Image"):
|
20 |
# image_tab()
|
21 |
-
with gr.Tab(label="π΅ Audio"):
|
22 |
-
|
23 |
# with gr.Tab(label="π₯ Video"):
|
24 |
# video_tab()
|
25 |
# with gr.Tab(label="π Text"):
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
from config import css
|
|
|
4 |
# from tabs.images.ui import image_tab
|
5 |
+
# from tabs.tts.ui import audio_tab
|
6 |
+
from tabs.sound.ui import sound_tab
|
7 |
|
8 |
|
9 |
with gr.Blocks(theme=gr.themes.Soft(), css=css) as demo:
|
|
|
17 |
|
18 |
# Tabs
|
19 |
with gr.Tabs():
|
20 |
+
with gr.Tab(label="π Sound"):
|
21 |
+
sound_tab()
|
22 |
# with gr.Tab(label="πΌοΈ Image"):
|
23 |
# image_tab()
|
24 |
+
# with gr.Tab(label="π΅ Audio"):
|
25 |
+
# audio_tab()
|
26 |
# with gr.Tab(label="π₯ Video"):
|
27 |
# video_tab()
|
28 |
# with gr.Tab(label="π Text"):
|
config.py
CHANGED
@@ -13,7 +13,9 @@ cosyvoice_path = os.path.join(os.getcwd(), 'tabs', 'audios', 'modules', 'CosyVoi
|
|
13 |
sys.path.append(matcha_tts_path)
|
14 |
sys.path.append(cosyvoice_path)
|
15 |
|
16 |
-
|
|
|
|
|
17 |
# Pull latest changes for submodules
|
18 |
os.system('git submodule update --init --recursive')
|
19 |
|
|
|
13 |
sys.path.append(matcha_tts_path)
|
14 |
sys.path.append(cosyvoice_path)
|
15 |
|
16 |
+
# Sound
|
17 |
+
ezaudio_path = os.path.join(os.getcwd(), 'tabs', 'sound', 'modules')
|
18 |
+
sys.path.append(ezaudio_path)
|
19 |
# Pull latest changes for submodules
|
20 |
os.system('git submodule update --init --recursive')
|
21 |
|
requirements.txt
CHANGED
@@ -8,10 +8,13 @@ onnxruntime-gpu
|
|
8 |
git+https://github.com/huggingface/diffusers.git
|
9 |
transformers
|
10 |
accelerate
|
|
|
11 |
sentencepiece
|
12 |
einops
|
|
|
13 |
peft
|
14 |
mediapipe
|
|
|
15 |
controlnet_aux
|
16 |
insightface
|
17 |
omegaconf
|
@@ -48,3 +51,10 @@ wget
|
|
48 |
fastapi-cli
|
49 |
spacy
|
50 |
spacy_langdetect
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
git+https://github.com/huggingface/diffusers.git
|
9 |
transformers
|
10 |
accelerate
|
11 |
+
argbind
|
12 |
sentencepiece
|
13 |
einops
|
14 |
+
randomname
|
15 |
peft
|
16 |
mediapipe
|
17 |
+
tensorboard
|
18 |
controlnet_aux
|
19 |
insightface
|
20 |
omegaconf
|
|
|
51 |
fastapi-cli
|
52 |
spacy
|
53 |
spacy_langdetect
|
54 |
+
julius
|
55 |
+
torch_stoi
|
56 |
+
flatten-dict
|
57 |
+
PyYAML
|
58 |
+
vector_quantize_pytorch
|
59 |
+
tqdm
|
60 |
+
alias_free_torch
|
tabs/sound/EzAudio
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit 596d21868a6503c7e06209795121e89c2d7c144e
|
tabs/sound/ui.py
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
from config import Config
|
4 |
+
from .events import *
|
5 |
+
|
6 |
+
|
7 |
+
def sound_tab():
|
8 |
+
|