Refactor space.py to install TTS package and improve code organization
Browse files
space.py
CHANGED
@@ -5,6 +5,7 @@ subprocess.run(
|
|
5 |
env={"FLASH_ATTENTION_SKIP_CUDA_BUILD": "TRUE"},
|
6 |
shell=True,
|
7 |
)
|
|
|
8 |
|
9 |
import gradio as gr
|
10 |
import spaces
|
|
|
5 |
env={"FLASH_ATTENTION_SKIP_CUDA_BUILD": "TRUE"},
|
6 |
shell=True,
|
7 |
)
|
8 |
+
subprocess.run("pip install -U TTS", shell=True)
|
9 |
|
10 |
import gradio as gr
|
11 |
import spaces
|