Spaces:
Running
Running
modify app
Browse files- inference.py +1 -0
inference.py
CHANGED
@@ -105,6 +105,7 @@ class MasteringStyleTransfer:
|
|
105 |
return min_loss_output, min_loss_params, min_loss_embedding, min_loss_step + 1
|
106 |
|
107 |
def process_audio(self, input_audio, reference_audio, ito_reference_audio, params, perform_ito, log_ito=False):
|
|
|
108 |
input_audio, reference_audio, ito_reference_audio = [
|
109 |
np.stack([audio, audio]) if audio.ndim == 1 else audio.transpose(1,0)
|
110 |
for audio in [input_audio, reference_audio, ito_reference_audio]
|
|
|
105 |
return min_loss_output, min_loss_params, min_loss_embedding, min_loss_step + 1
|
106 |
|
107 |
def process_audio(self, input_audio, reference_audio, ito_reference_audio, params, perform_ito, log_ito=False):
|
108 |
+
print(input_audio)
|
109 |
input_audio, reference_audio, ito_reference_audio = [
|
110 |
np.stack([audio, audio]) if audio.ndim == 1 else audio.transpose(1,0)
|
111 |
for audio in [input_audio, reference_audio, ito_reference_audio]
|