-
-
Notifications
You must be signed in to change notification settings - Fork 187
/
Copy pathstart-voice.py
31 lines (23 loc) · 947 Bytes
/
start-voice.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import argparse
import os
import sys
from pathlib import Path
current_dir = os.path.dirname(os.path.abspath(__file__))
parent_dir = os.path.dirname(current_dir)
sys.path.append(parent_dir)
from src.config import UserConfig
from app.abus_hf import AbusHuggingFace
from app.abus_genuine import genuine_init
from app.abus_app_voice import create_ui
from app.abus_path import path_workspace_folder, path_gradio_folder
# ABUS - start Gulliver
genuine_init()
AbusHuggingFace.hf_download_models(file_type='mdxnet-model', level=0)
AbusHuggingFace.hf_download_models(file_type='demucs', level=0)
AbusHuggingFace.hf_download_models(file_type='f5-tts', level=0)
AbusHuggingFace.hf_download_models(file_type='vocos-mel-24khz', level=0)
path_workspace_folder()
path_gradio_folder()
user_config_path = os.path.join(Path(__file__).resolve().parent, "app", "config-user.json5")
user_config = UserConfig(user_config_path)
create_ui(user_config=user_config)