Hezu06 commited on
Commit
41c11dd
Β·
1 Parent(s): 0231127

refactor generate_ai_midi function to reduce default number of notes from 40 to 20

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -76,7 +76,7 @@ model.eval() # Chuyển sang chαΊΏ Δ‘α»™ suy luαΊ­n
76
  with open('notes_corpus.pkl', 'rb') as f:
77
  corpus = pickle.load(f)
78
 
79
- def generate_ai_midi(bpm: int, output_file: str, num_notes: int = 40):
80
  temperature = max(0.5, min(1.1, 0.6 + (bpm - 60) / 100))
81
 
82
  # ══════════════════════════════════════════════════════
 
76
  with open('notes_corpus.pkl', 'rb') as f:
77
  corpus = pickle.load(f)
78
 
79
+ def generate_ai_midi(bpm: int, output_file: str, num_notes: int = 20):
80
  temperature = max(0.5, min(1.1, 0.6 + (bpm - 60) / 100))
81
 
82
  # ══════════════════════════════════════════════════════