Files
niknah-ComfyUI-F5-TTS/Install.py
T
2024-10-23 16:28:19 +11:00

23 lines
512 B
Python

import subprocess
import os.path
class Install:
f5TTSPath = os.path.join(os.path.dirname(__file__), "F5-TTS")
@staticmethod
def check_install():
if not os.path.exists(Install.f5TTSPath):
Install.install()
@staticmethod
def install():
subprocess.run(
[
"git", "clone", "--depth", "1",
"https://github.com/SWivid/F5-TTS",
"F5-TTS"
],
cwd=os.path.dirname(__file__)
)