projectlosangeles commited on
Commit
8e4f3e6
·
verified ·
1 Parent(s): 39d051c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -177,9 +177,8 @@ def generate_chords(chords,
177
  good_outs = []
178
 
179
  for o in out:
180
- if len(chords)-2 <= len(o) <= 380-len(chords)-2:
181
- if len(set(o)) >= len(chords) // 2:
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]