jhtonyKoo commited on
Commit
62d3f63
1 Parent(s): a990e23

modify app

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -10,10 +10,11 @@ from config import args
10
  mastering_transfer = MasteringStyleTransfer(args)
11
 
12
  def process_audio(input_audio, reference_audio):
13
- input_tensor = mastering_transfer.preprocess_audio(input_audio, args.sample_rate)
14
- reference_tensor = mastering_transfer.preprocess_audio(reference_audio, args.sample_rate)
 
15
  output_audio, predicted_params, _, _, _, sr = mastering_transfer.process_audio(
16
- input_tensor, reference_tensor, reference_tensor, {}, False
17
  )
18
 
19
  param_output = mastering_transfer.get_param_output_string(predicted_params)
 
10
  mastering_transfer = MasteringStyleTransfer(args)
11
 
12
  def process_audio(input_audio, reference_audio):
13
+ print(input_audio)
14
+ # input_tensor = mastering_transfer.preprocess_audio(input_audio, args.sample_rate)
15
+ # reference_tensor = mastering_transfer.preprocess_audio(reference_audio, args.sample_rate)
16
  output_audio, predicted_params, _, _, _, sr = mastering_transfer.process_audio(
17
+ input_audio, reference_audio, reference_tensor, {}, False
18
  )
19
 
20
  param_output = mastering_transfer.get_param_output_string(predicted_params)