theodoredc commited on
Commit
285d5b7
·
verified ·
1 Parent(s): 404cb8e

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +3 -0
utils.py CHANGED
@@ -19,6 +19,9 @@ else:
19
  # Download from HuggingFace Hub
20
  csv_path = hf_hub_download(repo_id=REPO_ID, filename=CSV_FILENAME)
21
 
 
 
 
22
  # Create a dictionary with keys the "chords" and values the "degrees"
23
  chord_degrees = dict(zip(chord_relations['Chords'], chord_relations['Degrees']))
24
  for key, value in chord_degrees.items():
 
19
  # Download from HuggingFace Hub
20
  csv_path = hf_hub_download(repo_id=REPO_ID, filename=CSV_FILENAME)
21
 
22
+
23
+ chord_relations = pd.read_csv(csv_path)
24
+
25
  # Create a dictionary with keys the "chords" and values the "degrees"
26
  chord_degrees = dict(zip(chord_relations['Chords'], chord_relations['Degrees']))
27
  for key, value in chord_degrees.items():