jhtonyKoo commited on
Commit
eb004a9
1 Parent(s): 253ad1f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -6
app.py CHANGED
@@ -63,7 +63,7 @@ def inference(file_uploaded_in, file_uploaded_ref):
63
  inference_style_transfer = Mixing_Style_Transfer_Inference(args)
64
  output_wav_path = inference_style_transfer.inference(None, None)
65
 
66
- return output_wav_path, output_wav_path
67
 
68
  def inference_mastering(file_uploaded_in, file_uploaded_ref):
69
  # Perform music mastering style transfer
@@ -72,7 +72,7 @@ def inference_mastering(file_uploaded_in, file_uploaded_ref):
72
  inference_mastering_style_transfer = Mastering_Style_Transfer_Inference(args)
73
  output_wav_path_mastering = inference_mastering_style_transfer.inference(file_uploaded_in, file_uploaded_ref)
74
 
75
- return output_wav_path_mastering, output_wav_path_mastering
76
 
77
 
78
  with gr.Blocks() as demo:
@@ -91,11 +91,13 @@ with gr.Blocks() as demo:
91
  Music Mixing Style Transfer
92
  </h1>
93
  </div>
94
- <p style="margin-bottom: 10px; font-size: 94%">
95
- Hugging Face interactive demo of the paper ["Music Mixing Style Transfer: A Contrastive Learning Approach to Disentangle Audio Effects"](https://huggingface.co/papers/2211.02247) (ICASSP 2023).<br>
 
 
 
96
 
97
- Transfer the input track's mixing style to that of reference's by uploading files or downloading via YouTube links. This demo page also provides mastering style transfer, which can be interpreted as an extended work of [this paper](https://huggingface.co/papers/2202.08520).
98
- </div>
99
  """
100
  )
101
  with gr.Group():
 
63
  inference_style_transfer = Mixing_Style_Transfer_Inference(args)
64
  output_wav_path = inference_style_transfer.inference(None, None)
65
 
66
+ return output_wav_path
67
 
68
  def inference_mastering(file_uploaded_in, file_uploaded_ref):
69
  # Perform music mastering style transfer
 
72
  inference_mastering_style_transfer = Mastering_Style_Transfer_Inference(args)
73
  output_wav_path_mastering = inference_mastering_style_transfer.inference(file_uploaded_in, file_uploaded_ref)
74
 
75
+ return output_wav_path_mastering
76
 
77
 
78
  with gr.Blocks() as demo:
 
91
  Music Mixing Style Transfer
92
  </h1>
93
  </div>
94
+ """
95
+ )
96
+ gr.Markdown(
97
+ """
98
+ This page is a Hugging Face interactive demo of the paper ["Music Mixing Style Transfer: A Contrastive Learning Approach to Disentangle Audio Effects"](https://huggingface.co/papers/2211.02247) (ICASSP 2023).
99
 
100
+ Transfer the input track's mixing style to that of reference's by uploading files or downloading via YouTube links. This demo page also provides mastering style transfer, which can be interpreted as an extended work of [this paper](https://huggingface.co/papers/2202.08520).
 
101
  """
102
  )
103
  with gr.Group():