Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,6 @@ def predict(midi_file=None, midi_synth=None, prompt="", neg_prompt="", duration=
|
|
28 |
midi = PrettyMIDI(midi_file)
|
29 |
if not duration or duration == 0:
|
30 |
duration = midi_synth[1].shape[0]/SAMPLE_RATE
|
31 |
-
print("Getting duration from MIDI", duration)
|
32 |
if not prompt and not neg_prompt:
|
33 |
guess_mode = True
|
34 |
audio = pipe(
|
|
|
28 |
midi = PrettyMIDI(midi_file)
|
29 |
if not duration or duration == 0:
|
30 |
duration = midi_synth[1].shape[0]/SAMPLE_RATE
|
|
|
31 |
if not prompt and not neg_prompt:
|
32 |
guess_mode = True
|
33 |
audio = pipe(
|