Spaces:
Running
Running
modify app
Browse files- app.py +2 -2
- inference.py +1 -1
app.py
CHANGED
@@ -11,7 +11,7 @@ mastering_transfer = MasteringStyleTransfer(args)
|
|
11 |
|
12 |
def process_audio(input_audio, reference_audio, perform_ito, ito_reference_audio=None):
|
13 |
# Process the audio files
|
14 |
-
output_audio, predicted_params, ito_output_audio, ito_predicted_params, ito_log, sr
|
15 |
input_audio, reference_audio, ito_reference_audio if ito_reference_audio else reference_audio, {}, perform_ito
|
16 |
)
|
17 |
|
@@ -33,7 +33,7 @@ def process_youtube_with_ito(input_url, reference_url, perform_ito, use_same_ref
|
|
33 |
reference_audio = download_youtube_audio(reference_url)
|
34 |
ito_ref = reference_audio if use_same_reference else download_youtube_audio(ito_reference_url)
|
35 |
|
36 |
-
output_audio, predicted_params, ito_output_audio, ito_predicted_params, ito_log, sr
|
37 |
input_audio, reference_audio, ito_ref, {}, perform_ito, log_ito=True
|
38 |
)
|
39 |
|
|
|
11 |
|
12 |
def process_audio(input_audio, reference_audio, perform_ito, ito_reference_audio=None):
|
13 |
# Process the audio files
|
14 |
+
output_audio, predicted_params, ito_output_audio, ito_predicted_params, ito_log, sr = mastering_transfer.process_audio(
|
15 |
input_audio, reference_audio, ito_reference_audio if ito_reference_audio else reference_audio, {}, perform_ito
|
16 |
)
|
17 |
|
|
|
33 |
reference_audio = download_youtube_audio(reference_url)
|
34 |
ito_ref = reference_audio if use_same_reference else download_youtube_audio(ito_reference_url)
|
35 |
|
36 |
+
output_audio, predicted_params, ito_output_audio, ito_predicted_params, ito_log, sr = mastering_transfer.process_audio(
|
37 |
input_audio, reference_audio, ito_ref, {}, perform_ito, log_ito=True
|
38 |
)
|
39 |
|
inference.py
CHANGED
@@ -172,7 +172,7 @@ class MasteringStyleTransfer:
|
|
172 |
ito_predicted_params = None
|
173 |
ito_log = None
|
174 |
|
175 |
-
return output_audio, predicted_params, ito_output_audio, ito_predicted_params, ito_log, self.args.sample_rate
|
176 |
|
177 |
def print_param_difference(self, initial_params, ito_params):
|
178 |
all_diffs = []
|
|
|
172 |
ito_predicted_params = None
|
173 |
ito_log = None
|
174 |
|
175 |
+
return output_audio, predicted_params, ito_output_audio, ito_predicted_params, ito_log, self.args.sample_rate
|
176 |
|
177 |
def print_param_difference(self, initial_params, ito_params):
|
178 |
all_diffs = []
|