fix(load_texts): correct path

parent 2271548b
...@@ -16,7 +16,7 @@ def load_texts(root="./"): ...@@ -16,7 +16,7 @@ def load_texts(root="./"):
files = os.listdir(data_dir) files = os.listdir(data_dir)
print("%i files in data folder." % len(files)) print("%i files in data folder." % len(files))
for filename in files: for filename in files:
all_lines.extend(get_lines(filename)) all_lines.extend(get_lines(data_dir + "/" + filename))
all_lines = filter_lines(all_lines) all_lines = filter_lines(all_lines)
print("Loaded %i lines of data: %s." % (len(all_lines), all_lines[0])) print("Loaded %i lines of data: %s." % (len(all_lines), all_lines[0]))
......
...@@ -9,4 +9,5 @@ def fetch(artist_name: str): ...@@ -9,4 +9,5 @@ def fetch(artist_name: str):
if __name__ == '__main__': if __name__ == '__main__':
fetch("Booba") fetch("Lucio Bukowski")
fetch("Hippocampe Fou")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment