Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,9 +2,19 @@ import os
|
|
2 |
import shlex
|
3 |
import subprocess
|
4 |
|
5 |
-
subprocess.run(
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
import spaces
|
10 |
import torch
|
@@ -185,8 +195,8 @@ def generate_audio(
|
|
185 |
|
186 |
|
187 |
def build_interface():
|
188 |
-
# UI 테마를
|
189 |
-
with gr.Blocks(theme=gr.themes.
|
190 |
with gr.Row():
|
191 |
with gr.Column():
|
192 |
model_choice = gr.Dropdown(
|
@@ -199,7 +209,7 @@ def build_interface():
|
|
199 |
label="Text to Synthesize",
|
200 |
value="Zonos uses eSpeak for text to phoneme conversion!",
|
201 |
lines=4,
|
202 |
-
max_length=500,
|
203 |
)
|
204 |
language = gr.Dropdown(
|
205 |
choices=supported_language_codes,
|
|
|
2 |
import shlex
|
3 |
import subprocess
|
4 |
|
5 |
+
subprocess.run(
|
6 |
+
shlex.split("pip install flash-attn --no-build-isolation"),
|
7 |
+
env=os.environ | {"FLASH_ATTENTION_SKIP_CUDA_BUILD": "TRUE"},
|
8 |
+
check=True,
|
9 |
+
)
|
10 |
+
subprocess.run(
|
11 |
+
shlex.split("pip install https://github.com/state-spaces/mamba/releases/download/v2.2.4/mamba_ssm-2.2.4+cu12torch2.4cxx11abiFALSE-cp310-cp310-linux_x86_64.whl"),
|
12 |
+
check=True,
|
13 |
+
)
|
14 |
+
subprocess.run(
|
15 |
+
shlex.split("pip install https://github.com/Dao-AILab/causal-conv1d/releases/download/v1.5.0.post8/causal_conv1d-1.5.0.post8+cu12torch2.4cxx11abiFALSE-cp310-cp310-linux_x86_64.whl"),
|
16 |
+
check=True,
|
17 |
+
)
|
18 |
|
19 |
import spaces
|
20 |
import torch
|
|
|
195 |
|
196 |
|
197 |
def build_interface():
|
198 |
+
# UI 테마를 세련되게 변경하기 위해 gr.themes.Soft() 테마를 사용합니다.
|
199 |
+
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
200 |
with gr.Row():
|
201 |
with gr.Column():
|
202 |
model_choice = gr.Dropdown(
|
|
|
209 |
label="Text to Synthesize",
|
210 |
value="Zonos uses eSpeak for text to phoneme conversion!",
|
211 |
lines=4,
|
212 |
+
max_length=500,
|
213 |
)
|
214 |
language = gr.Dropdown(
|
215 |
choices=supported_language_codes,
|