Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,7 @@ def run_example(midi_file=None, prompt="", neg_prompt="", duration=None, seed=0,
|
|
53 |
print("Duration", duration)
|
54 |
duration = midi_synth[1].shape[0]/SAMPLE_RATE
|
55 |
print("New duration", duration)
|
56 |
-
gen_audio = predict(midi_file, prompt, neg_prompt, duration
|
57 |
return midi_synth, gen_audio
|
58 |
|
59 |
with gr.Blocks(title="🎹 MIDI-AudioLDM", theme=gr.themes.Base(text_size=gr.themes.sizes.text_md, font=[gr.themes.GoogleFont("Nunito Sans")])) as demo:
|
|
|
53 |
print("Duration", duration)
|
54 |
duration = midi_synth[1].shape[0]/SAMPLE_RATE
|
55 |
print("New duration", duration)
|
56 |
+
gen_audio = predict(midi_file, prompt, neg_prompt, duration, seed, cond, inf, guidance_scale, guess)
|
57 |
return midi_synth, gen_audio
|
58 |
|
59 |
with gr.Blocks(title="🎹 MIDI-AudioLDM", theme=gr.themes.Base(text_size=gr.themes.sizes.text_md, font=[gr.themes.GoogleFont("Nunito Sans")])) as demo:
|