mirror of
https://github.com/babysor/MockingBird.git
synced 2024-03-22 13:11:31 +08:00
c5d03fb3cb
* Init new GUI * Remove unused codes * Reset layout * Add samples * Make framework to support multiple pages * Add vc mode * Add preprocessing mode * Add training mode * Remove text input in vc mode * Add entry for GUI and revise readme * Move requirement together * Add error raise when no model folder found * Add readme
9 lines
243 B
Python
9 lines
243 B
Python
import os
|
|
import shutil
|
|
|
|
def build_env(config, config_name, path):
|
|
t_path = os.path.join(path, config_name)
|
|
if config != t_path:
|
|
os.makedirs(path, exist_ok=True)
|
|
shutil.copyfile(config, os.path.join(path, config_name))
|