juancopi81 commited on
Commit
7c627a2
1 Parent(s): 2a4494f

Change sample rate to match

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -67,7 +67,7 @@ def inference(yt_audio_path):
67
  note_seq.sequence_proto_to_midi_file(est_ns, "./transcribed.mid")
68
 
69
  synth = note_seq.midi_synth.fluidsynth
70
- array_of_floats = synth(est_ns, sample_rate=44100)
71
  int16_data = note_seq.audio_io.float_samples_to_int16(array_of_floats)
72
  # piano_roll = create_image_from_note_sequence(note_sequence)
73
 
 
67
  note_seq.sequence_proto_to_midi_file(est_ns, "./transcribed.mid")
68
 
69
  synth = note_seq.midi_synth.fluidsynth
70
+ array_of_floats = synth(est_ns, sample_rate=SAMPLE_RATE)
71
  int16_data = note_seq.audio_io.float_samples_to_int16(array_of_floats)
72
  # piano_roll = create_image_from_note_sequence(note_sequence)
73