Spaces:
Running
Running
update options for asynchronous long generations
Browse files
app_df.py
CHANGED
@@ -212,6 +212,8 @@ with gr.Blocks() as demo:
|
|
212 |
n_frames = 0
|
213 |
overlap_history = 0
|
214 |
addnoise_condition = 0
|
|
|
|
|
215 |
|
216 |
if target_l == "4":
|
217 |
n_frames = 97
|
@@ -227,18 +229,22 @@ with gr.Blocks() as demo:
|
|
227 |
n_frames = 737
|
228 |
overlap_history = 17
|
229 |
addnoise_condition = 20
|
|
|
|
|
230 |
elif target_l == "60":
|
231 |
n_frames = 1457
|
232 |
overlap_history = 17
|
233 |
addnoise_condition = 20
|
|
|
|
|
234 |
|
235 |
-
return n_frames, overlap_history, addnoise_condition
|
236 |
|
237 |
|
238 |
target_length.change(
|
239 |
fn = set_num_frames,
|
240 |
inputs = [target_length],
|
241 |
-
outputs = [num_frames, overlap_history, addnoise_condition],
|
242 |
queue = False
|
243 |
)
|
244 |
|
|
|
212 |
n_frames = 0
|
213 |
overlap_history = 0
|
214 |
addnoise_condition = 0
|
215 |
+
ar_step = 0
|
216 |
+
causal_block_size = 1
|
217 |
|
218 |
if target_l == "4":
|
219 |
n_frames = 97
|
|
|
229 |
n_frames = 737
|
230 |
overlap_history = 17
|
231 |
addnoise_condition = 20
|
232 |
+
ar_step = 5
|
233 |
+
causal_block_size = 5
|
234 |
elif target_l == "60":
|
235 |
n_frames = 1457
|
236 |
overlap_history = 17
|
237 |
addnoise_condition = 20
|
238 |
+
ar_step = 5
|
239 |
+
causal_block_size = 5
|
240 |
|
241 |
+
return n_frames, overlap_history, addnoise_condition, ar_step, causal_block_size
|
242 |
|
243 |
|
244 |
target_length.change(
|
245 |
fn = set_num_frames,
|
246 |
inputs = [target_length],
|
247 |
+
outputs = [num_frames, overlap_history, addnoise_condition, ar_step, causal_block_size],
|
248 |
queue = False
|
249 |
)
|
250 |
|