Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -36,6 +36,7 @@ def transform_audio_chunk(audio):
|
|
36 |
|
37 |
audio_data = torch.tensor(audio[1], dtype=torch.float32).unsqueeze(0) # Prepare audio for processing
|
38 |
with torch.no_grad():
|
|
|
39 |
transformed_audio, _ = converter.generate_from_cache(
|
40 |
audio_data=(audio[0], audio_data.numpy()),
|
41 |
tag="live_transform",
|
|
|
36 |
|
37 |
audio_data = torch.tensor(audio[1], dtype=torch.float32).unsqueeze(0) # Prepare audio for processing
|
38 |
with torch.no_grad():
|
39 |
+
# Ensure that source_sr and base_sr are scalar values
|
40 |
transformed_audio, _ = converter.generate_from_cache(
|
41 |
audio_data=(audio[0], audio_data.numpy()),
|
42 |
tag="live_transform",
|