mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-03-13 03:17:41 +03:00
WIP: refactor, model switcher for native
This commit is contained in:
parent
7fa6de855d
commit
57ac020547
@ -37,8 +37,8 @@ def setModelType(_modelType: str):
|
||||
|
||||
def getFrontendPath():
|
||||
if modelType == "MMVCv15":
|
||||
frontend_path = os.path.join(sys._MEIPASS, "dist") if hasattr(sys, "_MEIPASS") else "../client/demo_v15/dist"
|
||||
frontend_path = os.path.join(sys._MEIPASS, "dist_v15") if hasattr(sys, "_MEIPASS") else "../client/demo_v15/dist"
|
||||
elif modelType == "MMVCv13":
|
||||
frontend_path = os.path.join(sys._MEIPASS, "dist") if hasattr(sys, "_MEIPASS") else "../client/demo_v13/dist"
|
||||
frontend_path = os.path.join(sys._MEIPASS, "dist_v13") if hasattr(sys, "_MEIPASS") else "../client/demo_v13/dist"
|
||||
|
||||
return frontend_path
|
||||
|
Loading…
x
Reference in New Issue
Block a user