Update app.py
Browse files
app.py
CHANGED
|
@@ -253,7 +253,7 @@ def Segment_Song(input_midi,
|
|
| 253 |
|
| 254 |
#==================================================================
|
| 255 |
|
| 256 |
-
if
|
| 257 |
segments = [TMIDIX.flatten(chords)]
|
| 258 |
|
| 259 |
#==================================================================
|
|
|
|
| 253 |
|
| 254 |
#==================================================================
|
| 255 |
|
| 256 |
+
if len(segments) < 2:
|
| 257 |
segments = [TMIDIX.flatten(chords)]
|
| 258 |
|
| 259 |
#==================================================================
|