This commit is contained in:
James Betker 2021-12-02 22:53:48 -07:00
parent cc10e7e7e8
commit 040d998922

View File

@ -18,7 +18,8 @@ from utils.util import opt_get
def load_tsv(filename):
with open(filename, encoding='utf-8') as f:
components = [line.strip().split('\t') for line in f]
filepaths_and_text = [[component[1], component[0]] for component in components]
base = os.path.dirname(filename)
filepaths_and_text = [[os.path.join(base, f'clips/{component[1]}'), component[0]] for component in components]
return filepaths_and_text