jaxmetaverse's picture
Upload folder using huggingface_hub
82ea528 verified
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__)
)