Update utils.py
Browse files
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():
|