Spaces:
Runtime error
Runtime error
j
commited on
Commit
·
cc634a8
1
Parent(s):
e72db6a
write temp segment files to unique filenames
Browse files
app.py
CHANGED
@@ -64,10 +64,10 @@ def process_fn(input_audio_path, seed, guidance_scale, num_inference_steps):
|
|
64 |
print(f"Segment end: {end}")
|
65 |
print(f"Segment start sample: {int(start*sig.sample_rate)}")
|
66 |
print(f"Segment end sample: {int(end*sig.sample_rate)}")
|
67 |
-
sig_seg.write("
|
68 |
audio = super_resolution(
|
69 |
audiosr,
|
70 |
-
"
|
71 |
seed=seed,
|
72 |
guidance_scale=guidance_scale,
|
73 |
ddim_steps=num_inference_steps,
|
|
|
64 |
print(f"Segment end: {end}")
|
65 |
print(f"Segment start sample: {int(start*sig.sample_rate)}")
|
66 |
print(f"Segment end sample: {int(end*sig.sample_rate)}")
|
67 |
+
sig_seg.write(f"temp_{audio_segment}.wav")
|
68 |
audio = super_resolution(
|
69 |
audiosr,
|
70 |
+
f"temp_{audio_segment}.wav",
|
71 |
seed=seed,
|
72 |
guidance_scale=guidance_scale,
|
73 |
ddim_steps=num_inference_steps,
|