floriangardin
commited on
Commit
·
592e727
1
Parent(s):
7165b3a
Update README.md
Browse files
README.md
CHANGED
@@ -40,8 +40,8 @@ score = ((V % III.b.M)(
|
|
40 |
piano__5=s0.ed.o(-1).mp + r.s,
|
41 |
piano__6=s4.ed.o(-1).mp + r.s))
|
42 |
|
43 |
-
# Predict
|
44 |
-
predicted_score = score.predict_score()
|
45 |
# Save it to midi
|
46 |
predicted_score.to_midi('test.mid')
|
47 |
```
|
|
|
40 |
piano__5=s0.ed.o(-1).mp + r.s,
|
41 |
piano__6=s4.ed.o(-1).mp + r.s))
|
42 |
|
43 |
+
# Predict the next two chords of the score using huggingface musiclang model
|
44 |
+
predicted_score = score.predict_score(n_chords=2, temperature=0.5)
|
45 |
# Save it to midi
|
46 |
predicted_score.to_midi('test.mid')
|
47 |
```
|