Spaces:
Runtime error
Runtime error
fix get_duration
Browse files
app.py
CHANGED
@@ -122,7 +122,7 @@ def get_duration(model_name, tab, mid_seq, continuation_state, continuation_sele
|
|
122 |
time_sig, key_sig, mid, midi_events, reduce_cc_st, remap_track_channel, add_default_instr,
|
123 |
remove_empty_channels, seed, seed_rand, gen_events, temp, top_p, top_k, allow_cc):
|
124 |
if tab == 0:
|
125 |
-
start_events = 1
|
126 |
elif tab == 1 and mid is not None:
|
127 |
start_events = midi_events
|
128 |
elif tab == 2 and mid_seq is not None:
|
|
|
122 |
time_sig, key_sig, mid, midi_events, reduce_cc_st, remap_track_channel, add_default_instr,
|
123 |
remove_empty_channels, seed, seed_rand, gen_events, temp, top_p, top_k, allow_cc):
|
124 |
if tab == 0:
|
125 |
+
start_events = 1
|
126 |
elif tab == 1 and mid is not None:
|
127 |
start_events = midi_events
|
128 |
elif tab == 2 and mid_seq is not None:
|