Spaces:
Runtime error
Runtime error
Commit ·
44fbc7e
1
Parent(s): 9ce5d47
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,10 +1,17 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
|
| 3 |
import consts
|
| 4 |
from utils_base import get_dataset_list, get_model_list
|
| 5 |
from utils_label import auto_label, delete_dataset
|
| 6 |
from utils_sambert import train, infer, delete_model
|
| 7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
def refresh():
|
| 9 |
return gr.update(choices=get_dataset_list()), gr.update(choices=get_model_list())
|
| 10 |
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
import os
|
| 3 |
import consts
|
| 4 |
from utils_base import get_dataset_list, get_model_list
|
| 5 |
from utils_label import auto_label, delete_dataset
|
| 6 |
from utils_sambert import train, infer, delete_model
|
| 7 |
|
| 8 |
+
os.system("pip install pysptk --no-build-isolation")
|
| 9 |
+
os.system("pip install kantts -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html")
|
| 10 |
+
|
| 11 |
+
os.system("pip install tts-autolabel -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html")
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
|
| 15 |
def refresh():
|
| 16 |
return gr.update(choices=get_dataset_list()), gr.update(choices=get_model_list())
|
| 17 |
|