awacke1 commited on
Commit
6f37c1a
1 Parent(s): 44f49c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -69,7 +69,6 @@ def take_last_tokens(inputs, note_history, history):
69
  return inputs, note_history, history
70
 
71
  def add_note_to_history(note, note_history):
72
- """Add a note to the historical information"""
73
  note_history.append(note)
74
  note_history = '</s> <s>'.join(note_history)
75
  return [note_history]
@@ -102,7 +101,6 @@ def process_audio_file(file):
102
  data, sr = librosa.load(file)
103
  if sr != SAMPLE_RATE:
104
  data = librosa.resample(data, orig_sr=sr, target_sr=SAMPLE_RATE)
105
- # monochannel
106
  data = librosa.to_mono(data)
107
  return data
108
 
 
69
  return inputs, note_history, history
70
 
71
  def add_note_to_history(note, note_history):
 
72
  note_history.append(note)
73
  note_history = '</s> <s>'.join(note_history)
74
  return [note_history]
 
101
  data, sr = librosa.load(file)
102
  if sr != SAMPLE_RATE:
103
  data = librosa.resample(data, orig_sr=sr, target_sr=SAMPLE_RATE)
 
104
  data = librosa.to_mono(data)
105
  return data
106