Update app.py
Browse files
app.py
CHANGED
|
@@ -177,9 +177,8 @@ def generate_chords(chords,
|
|
| 177 |
good_outs = []
|
| 178 |
|
| 179 |
for o in out:
|
| 180 |
-
if len(
|
| 181 |
-
|
| 182 |
-
good_outs.append(o)
|
| 183 |
|
| 184 |
if len(good_outs) > 0:
|
| 185 |
cho_prg = sorted(good_outs, key=lambda x: -len(set(x)))[0]
|
|
|
|
| 177 |
good_outs = []
|
| 178 |
|
| 179 |
for o in out:
|
| 180 |
+
if len(set(o)) >= len(chords) // 4:
|
| 181 |
+
good_outs.append(o)
|
|
|
|
| 182 |
|
| 183 |
if len(good_outs) > 0:
|
| 184 |
cho_prg = sorted(good_outs, key=lambda x: -len(set(x)))[0]
|