jhtonyKoo commited on
Commit
29c5ae3
1 Parent(s): 944fe37

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -28
app.py CHANGED
@@ -19,7 +19,6 @@ import pytube as pt
19
  from pytube.exceptions import VideoUnavailable
20
 
21
  from inference.style_transfer import *
22
- from inference.mastering_transfer import *
23
 
24
 
25
  yt_video_dir = "./yt_dir/0"
@@ -65,14 +64,6 @@ def inference(file_uploaded_in, file_uploaded_ref):
65
 
66
  return output_wav_path
67
 
68
- def inference_mastering(file_uploaded_in, file_uploaded_ref):
69
- # Perform music mastering style transfer
70
- args = set_up()
71
-
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:
@@ -96,8 +87,9 @@ with gr.Blocks() as demo:
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():
@@ -169,23 +161,6 @@ with gr.Blocks() as demo:
169
  outputs=[output_mix],
170
  )
171
 
172
-
173
- with gr.Group():
174
- gr.HTML(
175
- """
176
- <div> <h3> <center> Mastering Style Transfer. Perform mastering style transfer using the FXencoder.</h3> </div>
177
- """
178
- )
179
- with gr.Column():
180
- inference_mastering_btn = gr.Button("Run Mastering Style Transfer")
181
- with gr.Row():
182
- output_master = gr.Audio(label="mastering style transferred music track")
183
- inference_mastering_btn.click(
184
- inference_mastering,
185
- inputs=[file_uploaded_in, file_uploaded_ref],
186
- outputs=[output_master],
187
- )
188
-
189
 
190
 
191
  if __name__ == "__main__":
 
19
  from pytube.exceptions import VideoUnavailable
20
 
21
  from inference.style_transfer import *
 
22
 
23
 
24
  yt_video_dir = "./yt_dir/0"
 
64
 
65
  return output_wav_path
66
 
 
 
 
 
 
 
 
 
67
 
68
 
69
  with gr.Blocks() as demo:
 
87
  gr.Markdown(
88
  """
89
  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).
90
+ - [project page](https://jhtonykoo.github.io/MixingStyleTransfer/)
91
+ - [GitHub](https://github.com/jhtonyKoo/music_mixing_style_transfer)
92
+ - [supplementary](https://pale-cicada-946.notion.site/Music-Mixing-Style-Transfer-A-Contrastive-Learning-Approach-to-Disentangle-Audio-Effects-Supplemen-e6eccd9a431a4a8fa4fdd5adb2d3f219)
93
  """
94
  )
95
  with gr.Group():
 
161
  outputs=[output_mix],
162
  )
163
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
164
 
165
 
166
  if __name__ == "__main__":