Vansh Chugh commited on
Commit
7c831bd
·
1 Parent(s): 6e4352c

removed older handling

Browse files
Files changed (1) hide show
  1. app.py +3 -7
app.py CHANGED
@@ -172,13 +172,9 @@ def process_fn(input_audio_path: str, temperature: float) -> str:
172
  raise gr.Error("Input audio is too short; try a longer audio.")
173
  beat_information = {"beats": beats.tolist(), "downbeats": downbeats.tolist()}
174
 
175
- try:
176
- sheetsage_output = sheetsage_model(
177
- audio_path=input_audio_path, beat_information=beat_information
178
- )
179
- except ValueError:
180
- # SheetSage needs at least one full measure of audio to detect a beat/time signature.
181
- raise gr.Error("Input audio is too short; try a clip of 5s or longer.")
182
 
183
  out_events = picogen2.decode(
184
  model=decoder,
 
172
  raise gr.Error("Input audio is too short; try a longer audio.")
173
  beat_information = {"beats": beats.tolist(), "downbeats": downbeats.tolist()}
174
 
175
+ sheetsage_output = sheetsage_model(
176
+ audio_path=input_audio_path, beat_information=beat_information
177
+ )
 
 
 
 
178
 
179
  out_events = picogen2.decode(
180
  model=decoder,